|
Boost Users : |
From: Oleg V. Zhylin (ovz_at_[hidden])
Date: 2007-04-24 19:07:03
Hello All,
Could someone please help me to understand why code below fails to
compile with STATIC_ASSERTION_FAILURE in basic_xml_iarchive.hpp
// If your program fails to compile here, its most likely due
to
// not specifying an nvp wrapper around the variable to
// be serialized.
BOOST_STATIC_ASSERT(0 == sizeof(T));
Code does compile if BOOST_CLASS_EXPORT line is commeted out.
#include <boost/archive/xml_iarchive.hpp>
class A
{
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & i;
}
int i;
};
#include <boost/serialization/export.hpp>
BOOST_CLASS_EXPORT(A)
int main()
{
}
WBR Oleg V. Zhylin ovz_at_[hidden]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net