Update of /cvsroot/boost/boost/boost/archive
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8648

Modified Files:
      Tag: RC_1_34_0
        basic_text_oarchive.hpp 
Log Message:
tweaks to fix borlands problem with strong type

Index: basic_text_oarchive.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/archive/basic_text_oarchive.hpp,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -u -d -r1.9.2.1 -r1.9.2.2
--- basic_text_oarchive.hpp     30 May 2006 15:58:22 -0000      1.9.2.1
+++ basic_text_oarchive.hpp     7 Jun 2006 03:33:30 -0000       1.9.2.2
@@ -91,12 +91,23 @@
     // text file don't include the optional information 
     void save_override(const class_id_optional_type & /* t */, int){}
 
+    // note the following four overrides are necessary for some borland
+    // compilers which don't handle BOOST_STRONG_TYPE properly.
     void save_override(const version_type & t, int){
         // note:t.t resolves borland ambguity
-        unsigned  char x = t.t;
+        unsigned int x = t.t;
+        * this->This() << x;
+    }
+    void save_override(const class_id_type & t, int){
+        // note:t.t resolves borland ambguity
+        int x = t.t;
+        * this->This() << x;
+    }
+    void save_override(const class_id_reference_type & t, int){
+        // note:t.t resolves borland ambguity
+        int x = t.t;
         * this->This() << x;
     }
-
     void save_override(const class_name_type & t, int){
         const std::string s(t);
         * this->This() << s;



_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to