Open GoogleCodeExporter opened 9 years ago
Increasing _VARIADIC_MAX to 10 works for now.
However, it is not sufficient to define _VARIADIC_MAX only when gtest is built.
It needs to be defined project-wide so that the actual tests see this
preprocessor definition, too (e.g. use
add_definition(-D_VARIADIC_MAX=10)
for the tests if you are using CMake).
Original comment by benjamin...@gmail.com
on 8 Apr 2012 at 7:02
I would like to contribute working VS2012 sample. What should i do?
Original comment by michael....@gmail.com
on 3 Dec 2012 at 1:53
With latest CMake you can add:
target_compile_definitions(gtest PUBLIC "-D_VARIADIC_MAX=10")
This definition will be pushed to all projects who are dependens on gtest via
CMake.
Original comment by dipp...@gmail.com
on 26 Sep 2013 at 10:16
This is fixed in r675. https://code.google.com/p/googletest/source/detail?r=675
Original comment by ko...@google.com
on 13 Jan 2014 at 11:14
Original issue reported on code.google.com by
TheDZ...@gmail.com
on 26 Mar 2012 at 8:59