diff -r 510d5bd079ad boost/archive/impl/xml_iarchive_impl.ipp
|
a
|
b
|
|
| 143 | 143 | xml_iarchive_impl<Archive>::load_override(class_name_type & t, int){ |
| 144 | 144 | const std::string & s = gimpl->rv.class_name; |
| 145 | 145 | if(s.size() > BOOST_SERIALIZATION_MAX_KEY_SIZE - 1) |
| 146 | | boost::throw_exception(archive_exception::invalid_class_name); |
| | 146 | boost::throw_exception(archive_exception(archive_exception::invalid_class_name)); |
| 147 | 147 | char * tptr = t; |
| 148 | 148 | std::memcpy(tptr, s.data(), s.size()); |
| 149 | 149 | tptr[s.size()] = '\0'; |
diff -r 510d5bd079ad boost/archive/impl/xml_wiarchive_impl.ipp
|
a
|
b
|
|
| 136 | 136 | xml_wiarchive_impl<Archive>::load_override(class_name_type & t, int){ |
| 137 | 137 | const std::wstring & ws = gimpl->rv.class_name; |
| 138 | 138 | if(ws.size() > BOOST_SERIALIZATION_MAX_KEY_SIZE - 1) |
| 139 | | boost::throw_exception(archive_exception::invalid_class_name); |
| | 139 | boost::throw_exception(archive_exception(archive_exception::invalid_class_name)); |
| 140 | 140 | copy_to_ptr(t, ws); |
| 141 | 141 | } |
| 142 | 142 | |
diff -r 510d5bd079ad boost/archive/iterators/dataflow_exception.hpp
|
a
|
b
|
|
| 19 | 19 | #include <boost/config.hpp> |
| 20 | 20 | #ifndef BOOST_NO_EXCEPTIONS |
| 21 | 21 | #include <exception> |
| | 22 | #endif //BOOST_NO_EXCEPTIONS |
| 22 | 23 | |
| 23 | 24 | #include <cassert> |
| 24 | 25 | |
| … |
… |
|
| 76 | 77 | } // namespace archive |
| 77 | 78 | } // namespace boost |
| 78 | 79 | |
| 79 | | #endif //BOOST_NO_EXCEPTIONS |
| 80 | 80 | #endif //BOOST_ARCHIVE_ITERATORS_DATAFLOW_EXCEPTION_HPP |