You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Prepare a C++ file that includes glog/logging.h and uses the CHECK()
macro.
2. Compile the C++ using -DNDEBUG flag.
What is the expected output? What do you see instead?
The file should compile. Instead there are a lot of errors seen
that complain about GetReferenceableValue() not defined. The issue is the
following code in glog/logging.h:
// In optimized mode, use CheckOpString to hint to compiler that
// the while condition is unlikely.
#define CHECK_OP_LOG(name, op, val1, val2, log) \
while (google::CheckOpString _result = \
google::Check##name##Impl(GetReferenceableValue(val1), \
GetReferenceableValue(val2), \
#val1 " " #op " " #val2)) \
log(__FILE__, __LINE__, _result).stream()
#endif // STATIC_ANALYSIS, !NDEBUG
The above code needs to replace GetReferenceableValue with
google::GetReferenceableValue .
What version of the product are you using? On what operating system?
Version 0.3.0. Ubuntu 9.10.
Please provide any additional information below.
Original issue reported on code.google.com by mohit.a...@gmail.com on 5 Nov 2009 at 3:38
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
mohit.a...@gmail.com
on 5 Nov 2009 at 3:38The text was updated successfully, but these errors were encountered: