Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
26addade
Unverified
Commit
26addade
authored
Jan 03, 2018
by
Gennadiy Civil
Committed by
GitHub
Jan 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into fix-issue-776-support-autoconf-as-submodule
parents
a9fa67cb
ba6ecede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
gtest-printers.h
googletest/include/gtest/gtest-printers.h
+2
-7
gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+1
-1
No files found.
googletest/include/gtest/gtest-printers.h
View file @
26addade
...
@@ -427,13 +427,8 @@ void DefaultPrintTo(WrapPrinterType<kPrintFunctionPointer> /* dummy */,
...
@@ -427,13 +427,8 @@ void DefaultPrintTo(WrapPrinterType<kPrintFunctionPointer> /* dummy */,
*
os
<<
"NULL"
;
*
os
<<
"NULL"
;
}
else
{
}
else
{
// T is a function type, so '*os << p' doesn't do what we want
// T is a function type, so '*os << p' doesn't do what we want
// (it just prints p as bool). We want to print p as a const
// (it just prints p as bool). Cast p to const void* to print it.
// void*. However, we cannot cast it to const void* directly,
*
os
<<
reinterpret_cast
<
const
void
*>
(
p
);
// even using reinterpret_cast, as earlier versions of gcc
// (e.g. 3.4.5) cannot compile the cast when p is a function
// pointer. Casting to UInt64 first solves the problem.
*
os
<<
reinterpret_cast
<
const
void
*>
(
reinterpret_cast
<
internal
::
UInt64
>
(
p
));
}
}
}
}
...
...
googletest/include/gtest/internal/gtest-port.h
View file @
26addade
...
@@ -827,7 +827,7 @@ using ::std::tuple_size;
...
@@ -827,7 +827,7 @@ using ::std::tuple_size;
// Determines whether to support Combine().
// Determines whether to support Combine().
// The implementation doesn't work on Sun Studio since it doesn't
// The implementation doesn't work on Sun Studio since it doesn't
// understand templated conversion operators.
// understand templated conversion operators.
#if
GTEST_HAS_TR1_TUPLE
&& !defined(__SUNPRO_CC)
#if
(GTEST_HAS_TR1_TUPLE || GTEST_HAS_STD_TUPLE_)
&& !defined(__SUNPRO_CC)
# define GTEST_HAS_COMBINE 1
# define GTEST_HAS_COMBINE 1
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment