I have some problems with BOOST_CLASS_EXPORT macro, it
seems that this macro have no effect if i put it in
a separate .cpp file of a static library.
I have a simple class Element that contains a pointer to a
curve that can be of different types (geom2d.hpp).
struct Curve
{
Curve() {};
virtual ~Curve() {};
};
struct Line : public Curve
{
Line(int y = 0): m_y(y) {};
int m_y;
};
typedef boost::shared_ptr< Curve > CurvePtr;
struct Element
{
Element(const CurvePtr & curve):
m_curve(curve) {}
boost::shared_ptr< Curve > m_curve;
};
I would like to be able to serialize Element, so i
wrote a serialize.hpp file (attached) containing code for
serializing those structures.
I also wrote export.cpp using
#include "geom2d.hpp"
#include