Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
6323646e
Commit
6323646e
authored
Apr 08, 2011
by
zhanyong.wan
Browse files
fixes XL C++ compiler errors (by Pasi Valminen)
parent
7d560ed6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
include/gtest/internal/gtest-internal.h
include/gtest/internal/gtest-internal.h
+7
-6
No files found.
include/gtest/internal/gtest-internal.h
View file @
6323646e
...
@@ -788,13 +788,14 @@ struct RemoveConst { typedef T type; }; // NOLINT
...
@@ -788,13 +788,14 @@ struct RemoveConst { typedef T type; }; // NOLINT
template
<
typename
T
>
template
<
typename
T
>
struct
RemoveConst
<
const
T
>
{
typedef
T
type
;
};
// NOLINT
struct
RemoveConst
<
const
T
>
{
typedef
T
type
;
};
// NOLINT
// MSVC 8.0 and Sun C++ have a bug which causes the above definition
// MSVC 8.0, Sun C++, and IBM XL C++ have a bug which causes the above
// to fail to remove the const in 'const int[3]'. The following
// definition to fail to remove the const in 'const int[3]' and 'const
// specialization works around the bug. However, it causes trouble
// char[3][4]'. The following specialization works around the bug.
// with GCC and thus needs to be conditionally compiled.
// However, it causes trouble with GCC and thus needs to be
#if defined(_MSC_VER) || defined(__SUNPRO_CC)
// conditionally compiled.
#if defined(_MSC_VER) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
template
<
typename
T
,
size_t
N
>
template
<
typename
T
,
size_t
N
>
struct
RemoveConst
<
T
[
N
]
>
{
struct
RemoveConst
<
const
T
[
N
]
>
{
typedef
typename
RemoveConst
<
T
>::
type
type
[
N
];
typedef
typename
RemoveConst
<
T
>::
type
type
[
N
];
};
};
#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