hi all.
I recently tried to execute this very simple example:
#include <iostream>
#include
#include
#include
#include <fstream>
class A
{
public:
A(){}
private:
//Serialization tasks
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & , const unsigned int )
{
}
};
int main()
{
std::vector<A> eig;
std::cout <> eig;
}
std::cout < >,
std::allocator > > > >]: Assertion `!
detail::singleton_wrapper<T>::m_is_destroyed' failed.
Curiously, the comportment of the gcc 4.1.2 of codepad is not the
same: http://codepad.org/sEK2fLua
Curiously, this works fine on my compiler when i olny serialize A but
not with the codepad compiler: http://codepad.org/j3wlsWDv
Do you have any clue about this problem ?
Thanks