diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-02 11:29:11 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-02 11:29:11 +0200 |
commit | eec3527e33fdde3bada639f449f9b368bd53a2fe (patch) | |
tree | 42db52f46898c588e0a3ce41fa7e2598dc1d838e /external/boost/archive/portable_binary_oarchive.hpp | |
parent | Merge pull request #2310 (diff) | |
parent | Silence stupid fallthru warning in gcc 7 (diff) | |
download | monero-eec3527e33fdde3bada639f449f9b368bd53a2fe.tar.xz |
Merge pull request #2316
0c6c3eb3 Silence stupid fallthru warning in gcc 7 (Howard Chu)
Diffstat (limited to 'external/boost/archive/portable_binary_oarchive.hpp')
-rw-r--r-- | external/boost/archive/portable_binary_oarchive.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/external/boost/archive/portable_binary_oarchive.hpp b/external/boost/archive/portable_binary_oarchive.hpp index 9ed30d064..e2dcb9456 100644 --- a/external/boost/archive/portable_binary_oarchive.hpp +++ b/external/boost/archive/portable_binary_oarchive.hpp @@ -41,19 +41,24 @@ class portable_binary_oarchive_exception : public boost::archive::archive_exception
{
public:
- typedef enum {
+ enum exception_code {
invalid_flags
- } exception_code;
- portable_binary_oarchive_exception(exception_code c = invalid_flags )
+ } m_exception_code ;
+ portable_binary_oarchive_exception(exception_code c = invalid_flags ) :
+ boost::archive::archive_exception(boost::archive::archive_exception::other_exception),
+ m_exception_code(c)
{}
virtual const char *what( ) const throw( )
{
const char *msg = "programmer error";
- switch(code){
+ switch(m_exception_code){
case invalid_flags:
msg = "cannot be both big and little endian";
+ break;
default:
- boost::archive::archive_exception::what();
+ msg = boost::archive::archive_exception::what();
+ assert(false);
+ break;
}
return msg;
}
|