Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarCasting.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarCasting.hpp')
-rw-r--r--source/core/StarCasting.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarCasting.hpp b/source/core/StarCasting.hpp
index 64305af..0c2ed12 100644
--- a/source/core/StarCasting.hpp
+++ b/source/core/StarCasting.hpp
@@ -61,11 +61,11 @@ shared_ptr<Type1 const> as(shared_ptr<Type2 const> const& p) {
template <typename Type, typename Ptr>
auto convert(Ptr const& p) -> decltype(as<Type>(p)) {
if (!p)
- throw PointerConvertException::format("Could not convert from nullptr to %s", typeid(Type).name());
+ throw PointerConvertException::format("Could not convert from nullptr to {}", typeid(Type).name());
else if (auto a = as<Type>(p))
return a;
else
- throw PointerConvertException::format("Could not convert from %s to %s", typeid(*p).name(), typeid(Type).name());
+ throw PointerConvertException::format("Could not convert from {} to {}", typeid(*p).name(), typeid(Type).name());
}
template <typename Type1, typename Type2>