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. Compile after R51
2. Note that there are many definitions of mutex now.
What is the expected output? What do you see instead?
glog should not violate the ODR (one definition rule).
What version of the product are you using? On what operating system?
Any after r51
Please provide any additional information below.
r51 puts Mutex into an anonymous namespace. It is generally a bad idea to
put anything in headers into anonymous namespaces, because then each
includer gets a unique definition of whatever was in the anonymous
namespace in the includee. Because of C++ mangling, the linker will see
many different copies, each with a different name, that it will not
coalesce (or at least, we should not rely on them being coalesced).
I suggest changing Mutex to be inside namespace glog or namespace
glog_internal.
Original issue reported on code.google.com by mie...@gmail.com on 8 Jul 2009 at 4:49
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
mie...@gmail.com
on 8 Jul 2009 at 4:49The text was updated successfully, but these errors were encountered: