Update of /cvsroot/boost/boost/boost/archive
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4940
Modified Files:
polymorphic_iarchive.hpp polymorphic_oarchive.hpp
Log Message:
made destructor virtual
Index: polymorphic_iarchive.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/archive/polymorphic_iarchive.hpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- polymorphic_iarchive.hpp 16 Dec 2006 05:49:13 -0000 1.27
+++ polymorphic_iarchive.hpp 16 Jul 2007 16:20:29 -0000 1.28
@@ -123,10 +123,7 @@
load_end(t.name());
}
protected:
- // generally speaking, these archives cannot be destroyed through
- // the base class pointer. This is because there is no way to
- // forward to the "true" destructor
- ~polymorphic_iarchive_impl(){}
+ virtual ~polymorphic_iarchive_impl(){}
public:
// utility function implemented by all legal archives
virtual void set_library_version(unsigned int archive_library_version) = 0;
Index: polymorphic_oarchive.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/archive/polymorphic_oarchive.hpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- polymorphic_oarchive.hpp 16 Dec 2006 05:49:13 -0000 1.27
+++ polymorphic_oarchive.hpp 16 Jul 2007 16:20:31 -0000 1.28
@@ -123,10 +123,7 @@
save_end(t.name());
}
protected:
- // generally speaking, these archives cannot be destroyed through
- // the base class pointer. This is because there is no obvious way
- // to forward to the "true" destructor
- ~polymorphic_oarchive_impl(){}
+ virtual ~polymorphic_oarchive_impl(){}
public:
// utility functions implemented by all legal archives
virtual unsigned int get_flags() const = 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs