mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fix -Wweak-vtables warnings in exception classes.
This commit is contained in:

committed by
Jesse Beder

parent
d025040049
commit
0f20ddcdcb
19
src/exceptions.cpp
Normal file
19
src/exceptions.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "yaml-cpp/exceptions.h"
|
||||
|
||||
namespace YAML {
|
||||
|
||||
// These destructors are defined out-of-line so the vtable is only emitted once.
|
||||
Exception::~Exception() noexcept {}
|
||||
ParserException::~ParserException() noexcept {}
|
||||
RepresentationException::~RepresentationException() noexcept {}
|
||||
InvalidScalar::~InvalidScalar() noexcept {}
|
||||
KeyNotFound::~KeyNotFound() noexcept {}
|
||||
InvalidNode::~InvalidNode() noexcept {}
|
||||
BadConversion::~BadConversion() noexcept {}
|
||||
BadDereference::~BadDereference() noexcept {}
|
||||
BadSubscript::~BadSubscript() noexcept {}
|
||||
BadPushback::~BadPushback() noexcept {}
|
||||
BadInsert::~BadInsert() noexcept {}
|
||||
EmitterException::~EmitterException() noexcept {}
|
||||
BadFile::~BadFile() noexcept {}
|
||||
}
|
Reference in New Issue
Block a user