diff options
Diffstat (limited to '')
| -rw-r--r-- | utils/addr2name.cpp | 2 | ||||
| -rw-r--r-- | utils/command_line.hpp | 5 | ||||
| -rw-r--r-- | utils/enum_symbols.cpp | 2 | ||||
| -rw-r--r-- | utils/name2addr.cpp | 2 | ||||
| -rw-r--r-- | utils/pdb_descr.hpp | 1 |
5 files changed, 6 insertions, 6 deletions
diff --git a/utils/addr2name.cpp b/utils/addr2name.cpp index 4f1f686..98b53b9 100644 --- a/utils/addr2name.cpp +++ b/utils/addr2name.cpp @@ -57,7 +57,7 @@ std::string format_line_info(const winapi::LineInfo& line_info) { } void dump_error(const std::exception& e) { - std::cerr << "error: " << e.what() << '\n'; + std::cerr << std::format("error: {}\n", e.what()); } void resolve_symbol(const winapi::PostMortem& analysis, diff --git a/utils/command_line.hpp b/utils/command_line.hpp index 8f4b949..ebed79e 100644 --- a/utils/command_line.hpp +++ b/utils/command_line.hpp @@ -9,6 +9,7 @@ #include <exception> #include <filesystem> +#include <format> #include <iostream> #include <ostream> #include <string> @@ -43,7 +44,7 @@ public: void usage() const { std::cout << *this; } void usage_error(const std::exception& e) const { - std::cerr << "usage error: " << e.what() << '\n'; + std::cerr << std::format("usage error: {}\n", e.what()); std::cerr << *this; } @@ -61,7 +62,7 @@ private: friend std::ostream& operator<<(std::ostream& os, const SettingsParser& parser) { const auto short_descr = parser.get_short_description(); - os << "usage: " << parser.prog_name << ' ' << short_descr << '\n'; + os << std::format("usage: {} {}\n", parser.prog_name, short_descr); os << parser.visible; return os; } diff --git a/utils/enum_symbols.cpp b/utils/enum_symbols.cpp index 4950a82..574f0d0 100644 --- a/utils/enum_symbols.cpp +++ b/utils/enum_symbols.cpp @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { }); } } catch (const std::exception& e) { - std::cerr << "error: " << e.what() << '\n'; + std::cerr << std::format("error: {}\n", e.what()); return 1; } return 0; diff --git a/utils/name2addr.cpp b/utils/name2addr.cpp index d17919b..d253aa9 100644 --- a/utils/name2addr.cpp +++ b/utils/name2addr.cpp @@ -40,7 +40,7 @@ public: }; void dump_error(const std::exception& e) { - std::cerr << "error: " << e.what() << '\n'; + std::cerr << std::format("error: {}\n", e.what()); } void resolve_symbol(const winapi::PostMortem& analysis, std::string_view name) { diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp index e86135e..c2e720a 100644 --- a/utils/pdb_descr.hpp +++ b/utils/pdb_descr.hpp @@ -10,7 +10,6 @@ #include <boost/program_options.hpp> #include <string> -#include <string_view> #include <vector> struct PDB { |
