From 9b80d662bb4adb046317213c48fd959b6f676f56 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 19 Apr 2019 22:24:32 +0200 Subject: [PATCH] Catch polymorphic type by reference --- CMakeLists.txt | 2 +- lib/binary/reflector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06b5541..42ff98f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(META_APP_CATEGORIES "Utility;") set(META_GUI_OPTIONAL false) set(META_VERSION_MAJOR 0) set(META_VERSION_MINOR 0) -set(META_VERSION_PATCH 7) +set(META_VERSION_PATCH 8) set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}) set(META_CXX_STANDARD 17) set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) diff --git a/lib/binary/reflector.h b/lib/binary/reflector.h index f78a33e..98691f4 100644 --- a/lib/binary/reflector.h +++ b/lib/binary/reflector.h @@ -124,7 +124,7 @@ template (m_pointer[id]); - } catch (const std::bad_any_cast) { + } catch (const std::bad_any_cast &) { throw ConversionUtilities::ConversionException("Referenced pointer type does not match"); } }