Update of /cvsroot/boost/boost/boost/serialization
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2619
Modified Files:
array.hpp ephemeral.hpp nvp.hpp wrapper.hpp
Log Message:
Index: array.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/serialization/array.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- array.hpp 23 May 2006 14:41:40 -0000 1.3
+++ array.hpp 22 Jun 2006 07:19:55 -0000 1.4
@@ -18,10 +18,12 @@
template<class T>
class array
- : public wrapper_traits<array<T>, object_serializable, track_never>
+ : public wrapper_traits<array<T> >
{
public:
- explicit array(T* t, std::size_t s) :
+ typedef T value_type;
+
+ array(value_type* t, std::size_t s) :
m_t(t),
m_element_count(s)
{}
@@ -32,12 +34,12 @@
{
// default implemention does the loop
std::size_t c = count();
- T * t = address();
+ value_type * t = address();
while(0 < c--)
ar & make_nvp("item", *t++);
}
- T* address() const
+ value_type* address() const
{
return m_t;
}
@@ -49,7 +51,7 @@
private:
- T* m_t;
+ value_type* m_t;
std::size_t const m_element_count;
};
Index: ephemeral.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/serialization/ephemeral.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ephemeral.hpp 30 Apr 2006 23:58:59 -0000 1.1
+++ ephemeral.hpp 22 Jun 2006 07:19:55 -0000 1.2
@@ -40,7 +40,7 @@
template<class T>
struct ephemeral_object :
- public wrapper_traits<ephemeral_object<T>, object_serializable,
track_never>
+ public wrapper_traits<ephemeral_object<T> >
{
explicit ephemeral_object(T& t) :
val(t)
Index: nvp.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/serialization/nvp.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- nvp.hpp 30 Apr 2006 23:58:59 -0000 1.16
+++ nvp.hpp 22 Jun 2006 07:19:55 -0000 1.17
@@ -41,7 +41,7 @@
template<class T>
struct nvp :
public std::pair<const char *, T *>,
- public wrapper_traits<nvp<T>, object_serializable, track_never>
+ public wrapper_traits<nvp<T> >
{
explicit nvp(const char * name, T & t) :
// note: redundant cast works around borland issue
Index: wrapper.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/serialization/wrapper.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- wrapper.hpp 30 Apr 2006 23:58:59 -0000 1.1
+++ wrapper.hpp 22 Jun 2006 07:19:55 -0000 1.2
@@ -20,8 +20,8 @@
template<
class T,
- int Level,
- int Tracking,
+ int Level = object_serializable,
+ int Tracking = track_never,
unsigned int Version = 0,
class ETII = extended_type_info_impl< T >
>
@@ -51,4 +51,13 @@
} } // end namespace boost::serialization
+// A macro to define that a class is a wrapper
+#define BOOST_CLASS_IS_WRAPPER(T) \
+namespace boost { \
+namespace serialization { \
+template<> \
+struct is_wrapper< T > : mpl::true_ {}; \
+}}
+
+
#endif //BOOST_SERIALIZATION_WRAPPER_HPP
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs