summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/persistence.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/persistence.h b/lib/persistence.h
index 3c95a00..e385b20 100644
--- a/lib/persistence.h
+++ b/lib/persistence.h
@@ -1,6 +1,7 @@
#pragma once
#include <charconv>
+#include <format>
#include <functional>
#include <glm/glm.hpp>
#include <iosfwd>
@@ -571,7 +572,7 @@ namespace Persistence {
make_default_as_needed(this->v);
PersistenceSelect ps {mbr};
if (this->v->persist(ps)) {
- throw std::runtime_error("cannot find member: " + mbr);
+ throw std::runtime_error {std::format("Cannot find member: {}", mbr)};
}
return std::move(ps.sel);
}