Moved BOOST macro for class registration from header to cpp file to avoid SEGFAULTING...
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Wed, 19 May 2010 14:56:06 +0000 (16:56 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Wed, 19 May 2010 14:56:06 +0000 (16:56 +0200)
src/serializeservicecontainer.cpp
src/serializeservicecontainer.h

index b3857fc..7547d08 100644 (file)
@@ -9,6 +9,16 @@
 
 #include "serializeservicecontainer.h"
 
+// Following boost macros are needed for serialization of derived classes through a base class pointer (Service *).
+BOOST_CLASS_EXPORT_GUID(ServiceOds, "ServiceOds")
+BOOST_CLASS_EXPORT_GUID(ServiceDhs, "ServiceDhs")
+BOOST_CLASS_EXPORT_GUID(ServiceDyns, "ServiceDyns")
+BOOST_CLASS_EXPORT_GUID(ServiceDyndns, "ServiceDyndns")
+BOOST_CLASS_EXPORT_GUID(ServiceEasydns, "ServiceEasydns")
+BOOST_CLASS_EXPORT_GUID(ServiceTzo, "ServiceTzo")
+BOOST_CLASS_EXPORT_GUID(ServiceZoneedit, "ServiceZoneedit")
+BOOST_CLASS_EXPORT_GUID(ServiceGnudip, "ServiceGnudip")
+
 
 SerializeServiceContainer::SerializeServiceContainer()
 {
index 85eac11..f5a4984 100644 (file)
 #include "service_zoneedit.h"
 #include "service_gnudip.h"
 
-// Following boost macros are needed for serialization of derived classes through a base class pointer (Service *).
-BOOST_CLASS_EXPORT_GUID(ServiceOds, "ServiceOds")
-BOOST_CLASS_EXPORT_GUID(ServiceDhs, "ServiceDhs")
-BOOST_CLASS_EXPORT_GUID(ServiceDyns, "ServiceDyns")
-BOOST_CLASS_EXPORT_GUID(ServiceDyndns, "ServiceDyndns")
-BOOST_CLASS_EXPORT_GUID(ServiceEasydns, "ServiceEasydns")
-BOOST_CLASS_EXPORT_GUID(ServiceTzo, "ServiceTzo")
-BOOST_CLASS_EXPORT_GUID(ServiceZoneedit, "ServiceZoneedit")
-BOOST_CLASS_EXPORT_GUID(ServiceGnudip, "ServiceGnudip")
-
 
 class SerializeServiceContainer
 {