Files
serialization/test/test_zmisc.cpp
Robert Ramey 5888e13122 initial checkin
[SVN r23433]
2004-07-11 01:15:12 +00:00

21 lines
402 B
C++

#include <boost/static_assert.hpp>
#include <boost/type_traits/is_polymorphic.hpp>
struct vbase
{
};
struct derived : public virtual vbase
{
};
// VC 7.1, borland 5.51 and Commeau trap here (no gcc !)
BOOST_STATIC_ASSERT(boost::is_polymorphic<derived>::value);
// everything including gcc trap here !
BOOST_STATIC_ASSERT(boost::is_polymorphic<vbase>::value);
int main(int argc, char *argv[])
{
}