$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2003-12-21 21:50:30
"Stefan Slapeta" <stefan_at_[hidden]> writes:
> int main()
> {
> // should be equal
> int s1 = Polymorphic_Test<std::iostream>::size_d1;
> int s2 = Polymorphic_Test<std::iostream>::size_d2;
>
> // should be 1
> int isPoly = Polymorphic_Test<std::iostream>::value;
> }
"should be" is a little unclear here. A clearer main would be:
#include <boost/static_assert.hpp>
int main()
{
// should be equal
int s1 = Polymorphic_Test<std::iostream>::size_d1;
int s2 = Polymorphic_Test<std::iostream>::size_d2;
BOOST_STATIC_ASSERT(s1 == s2);
BOOST_STATIC_ASSERT(Polymorphic_Test<std::iostream>::value);
}
Does that convey your intention?
-- Dave Abrahams Boost Consulting www.boost-consulting.com