On Mon, Oct 13, 2008 at 12:42 PM, Steven Watanabe
AMDG
Robert Mecklenburg wrote:
Compiling against the boost trunk I'm getting hundreds of these:
g++ -Wall -Wextra -Wno-missing-braces -g -ftrapv -DBOOST_1_36_0 -Iboost-1_37 -MMD -MP -DUSE_TRAPV -c -o src/test/BlobTest.o src/test/BlobTest.cpp boost/test/floating_point_comparison.hpp:224: warning: 'boost::test_tools::<unnamed>::check_is_close' defined but not used boost/test/floating_point_comparison.hpp:246: warning: 'boost::test_tools::<unnamed>::check_is_small' defined but not used
Any chance we can fix this? If you need a tester for g++ 4.2.3, I can do it.
The usual trick for avoiding ODR violations seems to work.
class X {};
template<class T> struct static_ { static T value; };
template<class T> T static_<T>::value;
namespace { const X& x = static_<X>::value; }
int main() { }
In Christ, Steven Watanabe
This trick seemed to work at first, but then when I ran the 1.37.0 test tests I got: ..\..\libs\test\example\unit_test_example_10.cpp(75) : error C2039: 'check_is_close' : is not a member of 'boost::test_tools' ..\..\libs\test\example\unit_test_example_10.cpp(75) : error C2065: 'check_is_close' : undeclared identifier Other ideas? I need to patch 1.37.0 to kill these warnings. Thanks, Mat