aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/call_stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/call_stack.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/call_stack.cpp b/src/call_stack.cpp
index e69c10d..6e4bd29 100644
--- a/src/call_stack.cpp
+++ b/src/call_stack.cpp
@@ -10,8 +10,8 @@
#include <algorithm>
#include <array>
#include <cstddef>
+#include <format>
#include <ostream>
-#include <sstream>
#include <stdexcept>
#include <string>
#include <system_error>
@@ -21,9 +21,7 @@ namespace {
template <typename T>
static std::string put_between_brackets(const T& x) {
- std::ostringstream oss;
- oss << "[" << x << "]";
- return oss.str();
+ return std::format("[{}]", x);
}
std::string format_address_fallback(Address addr) {