From 1855c6278dc2fa823922b89dd50e904ef8d7db3c Mon Sep 17 00:00:00 2001 From: Vincent Cogne Date: Fri, 20 May 2016 14:41:24 +0200 Subject: [PATCH] Fix deprecated definition of implicit copy constructor for 'Exception' --- include/yaml-cpp/exceptions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/yaml-cpp/exceptions.h b/include/yaml-cpp/exceptions.h index c9a4edd..5d44c05 100644 --- a/include/yaml-cpp/exceptions.h +++ b/include/yaml-cpp/exceptions.h @@ -114,6 +114,8 @@ class Exception : public std::runtime_error { : std::runtime_error(build_what(mark_, msg_)), mark(mark_), msg(msg_) {} virtual ~Exception() noexcept {} + Exception(const Exception&) = default; + Mark mark; std::string msg;