Boost logo

Boost :

From: Eugene Prystupa (prystupa_at_[hidden])
Date: 2006-11-09 12:46:29


Hi folks,

I have a problem using boost::binary_oarchive with MSVS C++ 2005 compiler. I'm
using boost 1.33.1. Consider a small example below:

#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/variant.hpp>
#include <sstream>

void main()
{
        boost::variant<int> v;
        std::stringstream output;
        boost::archive::binary_oarchive oa(output);

        oa << v;
}

The last line results in the following compiler error:
Error 1 error C2027: use of undefined
type 'boost::STATIC_ASSERTION_FAILURE<x>' c:\mydata\myprojects\ny2325
\svn\api\shared\include\boost\archive\detail\oserializer.hpp 567

Serializing primitive types like 'int' has no problems. Any help is greatly
appreciated.

Thanks,
Eugene Prystupa


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk