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){}