ddavis2speedray / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gtest-tuple conflicts with standard library #257

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a compiler with TR1 support ( I'm using VC2010 RC )
2. #include <gtest/gtest.h>
3. #include <tuple>

What is the expected output? What do you see instead?

Expected no errors.
Instead there is a conflict with gtests std::tr1::tuple implementation.

Please provide any additional information below, such as a code snippet.

I would suggest using the preprocessor to include your tuple implementation 
only if there 
isn't one already in the standard library.

Original issue reported on code.google.com by j.w.rog...@gmail.com on 7 Mar 2010 at 9:07

GoogleCodeExporter commented 9 years ago
This was already fixed in the trunk.  See
http://code.google.com/p/googletest/source/browse/trunk/include/gtest/internal/g
test-port.h.

Original comment by w...@google.com on 8 Mar 2010 at 5:56