15 Jul 04:18
Help with Access Violation in simple serialization
From: Tiago da Silva <besbatti <at> gmail.com>
Subject: Help with Access Violation in simple serialization
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-07-15 02:21:55 GMT
Subject: Help with Access Violation in simple serialization
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-07-15 02:21:55 GMT
Hi there,
I am having some serious problems when trying to instantiate either a
boost::archive::xml_oarchive or a boost::archive::text_oarchive: everytime I
receive an
"Unhandled exception at XXX (msvcr90d.dll) in XXX : Access violation writing
location"
I have simplified a test case up to this:
structure I want to save (in whatever.h):
typedef
struct s_pt
{
int x;
int y;
bool operator< (const struct s_pt &spt2) const
{
return (x < spt2.x) && (y < spt2.y);
}
bool operator== (const struct s_pt &spt2) const
{
return (x == spt2.x) && (y == spt2.y);
}
template<class Archive> // turns into a serializable
(Continue reading)
RSS Feed