What steps will reproduce the problem?
1. Use gtest with Visual Studio 2012
2. Compile directly in your code gtest
What is the expected output? What do you see instead?
Compilation should succeed. Instead I see the error messages:
4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C2977: 'std::tuple' : too many template arguments
4> C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\utility(73) : see declaration of 'std::tuple'
4>
C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-gene
rated.h(5087) : see reference to class template instantiation
'testing::internal::CartesianProductHolder9<Generator1,Generator2,Generator3,Gen
erator4,Generator5,Generator6,Generator7,Generator8,Generator9>' being compiled
4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C3203: 'tuple' : unspecialized class template can't be
used as a template argument for template parameter 'T', expected a real type
4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C2955: 'std::tuple' : use of class template requires
template argument list
4> C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\include\utility(73) : see declaration of 'std::tuple'
What version of Google Test are you using? On what operating system?
gtest sources from trunk on Windows Server 2012
Please provide any additional information below, such as a code snippet.
I am using a cmake file with the following content:
file ( GLOB ITPP_TEST_SRCS *.cpp )
include_directories ( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${GTEST_DIR}
${GTEST_DIR}/include )
add_executable ( itpp_gtests ${ITPP_TEST_SRCS} ${GTEST_DIR}/src/gtest-all.cc
${GTEST_DIR}/src/gtest_main.cc )
Original issue reported on code.google.com by cristeab on 6 Jul 2013 at 11:08
Original issue reported on code.google.com by
cristeab
on 6 Jul 2013 at 11:08