From e4ffaa0eccd12b61454a93765dcd19988645dcaa Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Sun, 4 Jun 2006 18:55:01 +0000 Subject: [PATCH] change hoping to fix borland test [SVN r34172] --- include/boost/archive/basic_text_iarchive.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/archive/basic_text_iarchive.hpp b/include/boost/archive/basic_text_iarchive.hpp index a96bbd26..ab70019b 100644 --- a/include/boost/archive/basic_text_iarchive.hpp +++ b/include/boost/archive/basic_text_iarchive.hpp @@ -61,6 +61,16 @@ public: { this->detail_common_iarchive::load_override(t, 0); } + + // Borland compilers has a problem with strong type. Try to fix this here + #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582)) + void load_override(version_type & t, int){ + unsigned int x; + * this->This() >> x; + t.t = version_type(x); + } + #endif + // text file don't include the optional information void load_override(class_id_optional_type & /*t*/, int){}