exceptions.cpp 1.16 KB
Newer Older
1
2
#include "yaml-cpp/exceptions.h"

3
4
// This is here for compatibility with older versions of Visual Studio
// which don't support noexcept
5
#if defined(_MSC_VER) && _MSC_VER < 1900
6
7
8
9
10
    #define YAML_CPP_NOEXCEPT _NOEXCEPT
#else
    #define YAML_CPP_NOEXCEPT noexcept
#endif

11
12
13
namespace YAML {

// These destructors are defined out-of-line so the vtable is only emitted once.
14
15
16
17
18
19
20
21
22
23
24
25
26
Exception::~Exception() YAML_CPP_NOEXCEPT = default;
ParserException::~ParserException() YAML_CPP_NOEXCEPT = default;
RepresentationException::~RepresentationException() YAML_CPP_NOEXCEPT = default;
InvalidScalar::~InvalidScalar() YAML_CPP_NOEXCEPT = default;
KeyNotFound::~KeyNotFound() YAML_CPP_NOEXCEPT = default;
InvalidNode::~InvalidNode() YAML_CPP_NOEXCEPT = default;
BadConversion::~BadConversion() YAML_CPP_NOEXCEPT = default;
BadDereference::~BadDereference() YAML_CPP_NOEXCEPT = default;
BadSubscript::~BadSubscript() YAML_CPP_NOEXCEPT = default;
BadPushback::~BadPushback() YAML_CPP_NOEXCEPT = default;
BadInsert::~BadInsert() YAML_CPP_NOEXCEPT = default;
EmitterException::~EmitterException() YAML_CPP_NOEXCEPT = default;
BadFile::~BadFile() YAML_CPP_NOEXCEPT = default;
27
}
28
29
30
31

#undef YAML_CPP_NOEXCEPT