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
5f18b68b
Commit
5f18b68b
authored
Apr 04, 2013
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes some compatibility issues with STLport.
parent
c08ec2a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
gtest-printers_test.cc
test/gtest-printers_test.cc
+9
-4
gtest_unittest.cc
test/gtest_unittest.cc
+1
-1
No files found.
test/gtest-printers_test.cc
View file @
5f18b68b
...
@@ -214,10 +214,15 @@ using ::std::tr1::make_tuple;
...
@@ -214,10 +214,15 @@ using ::std::tr1::make_tuple;
using
::
std
::
tr1
::
tuple
;
using
::
std
::
tr1
::
tuple
;
#endif
#endif
#if _MSC_VER
// The hash_* classes are not part of the C++ standard. STLport
// MSVC defines the following classes in the ::stdext namespace while
// defines them in namespace std. MSVC defines them in ::stdext. GCC
// gcc defines them in the :: namespace. Note that they are not part
// defines them in ::.
// of the C++ standard.
#ifdef _STLP_HASH_MAP // We got <hash_map> from STLport.
using
::
std
::
hash_map
;
using
::
std
::
hash_set
;
using
::
std
::
hash_multimap
;
using
::
std
::
hash_multiset
;
#elif _MSC_VER
using
::
stdext
::
hash_map
;
using
::
stdext
::
hash_map
;
using
::
stdext
::
hash_set
;
using
::
stdext
::
hash_set
;
using
::
stdext
::
hash_multimap
;
using
::
stdext
::
hash_multimap
;
...
...
test/gtest_unittest.cc
View file @
5f18b68b
...
@@ -4518,7 +4518,7 @@ TEST(EqAssertionTest, StdString) {
...
@@ -4518,7 +4518,7 @@ TEST(EqAssertionTest, StdString) {
// Compares a const char* to an std::string that has different
// Compares a const char* to an std::string that has different
// content
// content
EXPECT_NONFATAL_FAILURE
(
EXPECT_EQ
(
"Test"
,
::
std
::
string
(
"test"
)),
EXPECT_NONFATAL_FAILURE
(
EXPECT_EQ
(
"Test"
,
::
std
::
string
(
"test"
)),
"
::std::string(
\"
test
\"
)
"
);
"
\"
test
\"
"
);
// Compares an std::string to a char* that has different content.
// Compares an std::string to a char* that has different content.
char
*
const
p1
=
const_cast
<
char
*>
(
"foo"
);
char
*
const
p1
=
const_cast
<
char
*>
(
"foo"
);
...
...
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