little changes to avoid warnings

[SVN r2409]
This commit is contained in:
Arkadiy Vertleyb
2004-12-12 15:56:11 +00:00
parent 5e27109060
commit 17a98d6a84
3 changed files with 13 additions and 4 deletions
+4 -1
View File
@@ -70,6 +70,9 @@ BOOST_STATIC_ASSERT(typeof_test<double(*)(int, double, short, char*, bool, char,
BOOST_STATIC_ASSERT(typeof_test<void(*)()>::value);
BOOST_STATIC_ASSERT(typeof_test<void(*)(int, double, short, char*, bool, char, float, long, unsigned short)>::value);
#pragma message("function references...")
BOOST_STATIC_ASSERT(typeof_test<int&>::value);
#pragma message("member functions...")
BOOST_STATIC_ASSERT(typeof_test<double(x::*)()>::value);
BOOST_STATIC_ASSERT(typeof_test<double(x::*)(int, double, short, char*, bool, char, float, long, unsigned short)>::value);
@@ -78,7 +81,6 @@ BOOST_STATIC_ASSERT(typeof_test<void(x::*)(int, double, short, char*, bool, char
BOOST_STATIC_ASSERT(typeof_test<double(x::*)()const>::value);
BOOST_STATIC_ASSERT(typeof_test<double(x::*)()volatile>::value);
BOOST_STATIC_ASSERT(typeof_test<double(x::*)()volatile const>::value);
//BOOST_STATIC_ASSERT(typeof_test<static double(x::*)()volatile const>::value);
#pragma message("data members...")
BOOST_STATIC_ASSERT(typeof_test<double x::*>::value);
@@ -130,6 +132,7 @@ struct noncopiable_test
#else
BOOST_AUTO(const& v, foo());
#endif
v; // to avoid warning
}
};