Open GoogleCodeExporter opened 9 years ago
The offending line is:
GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(::string, "");
where the macro is defined as
#define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(type, value) \
template <> \
class BuiltInDefaultValue<type> { \
public: \
static bool Exists() { return true; } \
static type Get() { return value; } \
}
The code conforms to the C++ standard and it is a bug in MSVC2010 SP1 that
causes the warning. It's wrong for the preprocessor to do the tokenization of
'<type>' after substituting '::string' for 'type'. However, we can easily work
around the bug by changing
<type>
to
< type >
Original comment by w...@google.com
on 29 Nov 2011 at 10:36
Can someone take a look at http://codereview.appspot.com/5451043/ ?
I'd like to move on with that.
Original comment by maruel@google.com
on 12 Dec 2011 at 7:28
Original issue reported on code.google.com by
maruel@google.com
on 29 Nov 2011 at 9:22