
Craig Henderson <cdm.henderson <at> gmail.com> writes:
Hi, I am starting a new project. I am using boost::timer::cpu_timer from boost/timer/timer.hpp and Boost.Test
When I include boost/test/included/unit_test.hpp in my unit test suite, I get compilation errors where boost::timer is declared as a class where previously it's defined as a namespace:
boost/timer.hpp(45): error C2869: 'boost::timer' : has already been defined to be a namespace
boost/test/impl/framework.ipp(153): error C2882: 'timer' : illegal use of namespace identifier in expression
boost/test/impl/framework.ipp(153): fatal error C1903: unable to recover from previous error(s); stopping compilation
So this is more of a conflict between #include <boost/timer.hpp> and #include <boost/timer/timer.hpp> Is this intentional? Who support this header? Meanwhile I guess you should use library variant if Boost.Test. Gennadiy