summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 21:14:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 21:14:45 +0100
commit6e94848aec5d42eed5f9e1f5548ade26915ce90b (patch)
treeb6cf5bc39f7da4c8853491da4008c29406b135f3 /lib
parentTidy of glRef (diff)
downloadilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.tar.bz2
ilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.tar.xz
ilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.zip
Tidy many stringy messes with std::format
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);
}