mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-27 17:22:14 +00:00
changes to support visibility - by Edward Diener
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#define BOOST_ARCHIVE_SOURCE
|
||||
#include <boost/archive/archive_exception.hpp>
|
||||
@@ -21,6 +22,7 @@
|
||||
namespace boost {
|
||||
namespace archive {
|
||||
|
||||
BOOST_ARCHIVE_DECL
|
||||
unsigned int
|
||||
archive_exception::append(unsigned int l, const char * a){
|
||||
while(l < (sizeof(m_buffer) - 1)){
|
||||
@@ -109,13 +111,23 @@ archive_exception::archive_exception(
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_ARCHIVE_DECL
|
||||
archive_exception::archive_exception(archive_exception const & oth) BOOST_NOEXCEPT :
|
||||
std::exception(oth),
|
||||
code(oth.code)
|
||||
{
|
||||
std::memcpy(m_buffer,oth.m_buffer,sizeof m_buffer);
|
||||
}
|
||||
|
||||
BOOST_ARCHIVE_DECL
|
||||
archive_exception::~archive_exception() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
|
||||
BOOST_ARCHIVE_DECL const char *
|
||||
archive_exception::what( ) const BOOST_NOEXCEPT_OR_NOTHROW {
|
||||
archive_exception::what() const BOOST_NOEXCEPT_OR_NOTHROW {
|
||||
return m_buffer;
|
||||
}
|
||||
|
||||
BOOST_ARCHIVE_DECL
|
||||
archive_exception::archive_exception() BOOST_NOEXCEPT :
|
||||
code(no_exception)
|
||||
|
||||
Reference in New Issue
Block a user