fixed for vc7

[SVN r1706]
This commit is contained in:
Daniel Wallin
2003-10-25 08:10:53 +00:00
parent cce938a525
commit 5da50bd5e0

View File

@@ -94,11 +94,12 @@ namespace test
template <class Name_, class Value_, class Index_>
void operator()(Name_ const& n_, Value_ const& v_, Index_ const& i_) const
{
BOOST_STATIC_ASSERT((boost::is_same<Name,Name_>::value));
// vc7 fails on these assert because of constness mismatch
// BOOST_STATIC_ASSERT((boost::is_same<Name,Name_>::value));
assert(equal(n, n_));
BOOST_STATIC_ASSERT((boost::is_same<Value,Value_>::value));
// BOOST_STATIC_ASSERT((boost::is_same<Value,Value_>::value));
assert(equal(v, v_));
BOOST_STATIC_ASSERT((boost::is_same<Index,Index_>::value));
// BOOST_STATIC_ASSERT((boost::is_same<Index,Index_>::value));
assert(equal(i, i_));
}
@@ -137,4 +138,3 @@ int main()
//f(index = 56, name = 55); // won't compile
return 0;
}