Fix -Wweak-vtables warnings in exception classes.

This commit is contained in:
Jens Breitbart
2016-12-03 16:58:44 +01:00
committed by Jesse Beder
parent d025040049
commit 0f20ddcdcb
2 changed files with 33 additions and 2 deletions

19
src/exceptions.cpp Normal file
View 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 {}
}