Skip to content

Commit

Permalink
Catch polymorphic type by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Apr 19, 2019
1 parent 669aa16 commit 9b80d66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/binary/reflector.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ template <typename Type, Traits::EnableIf<Traits::IsSpecializationOf<Type, std::
// further occurences: copy previous pointer
try {
pointer = std::any_cast<Type>(m_pointer[id]);
} catch (const std::bad_any_cast) {
} catch (const std::bad_any_cast &) {
throw ConversionUtilities::ConversionException("Referenced pointer type does not match");
}
}
Expand Down

0 comments on commit 9b80d66

Please sign in to comment.