diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 01:34:52 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 02:06:22 +0300 |
commit | c073ed8f702e98ec56ed05e0c02167e355e6ee31 (patch) | |
tree | f726a5830ed4f47724ac6c447571398ef5b12ea2 /utils/enum_symbols.cpp | |
parent | add Process class (diff) | |
download | winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.tar.gz winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.zip |
switch to Boost.Nowide everywhere
Diffstat (limited to '')
-rw-r--r-- | utils/enum_symbols.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/enum_symbols.cpp b/utils/enum_symbols.cpp index 123c9d1..49dbfed 100644 --- a/utils/enum_symbols.cpp +++ b/utils/enum_symbols.cpp @@ -6,6 +6,7 @@ #include "command_line.hpp" #include "pdb/all.hpp" +#include <boost/nowide/iostream.hpp> #include <boost/program_options.hpp> #include <exception> @@ -17,7 +18,7 @@ namespace { class EnumSymbols : public SettingsParser { public: - explicit EnumSymbols(const std::string& argv0) : SettingsParser{argv0} { + explicit EnumSymbols(int argc, char** argv) : SettingsParser{argc, argv} { namespace po = boost::program_options; visible.add_options()("pdb", @@ -58,7 +59,7 @@ constexpr pdb::symbol::Tag EnumSymbols::function_tag; int main(int argc, char* argv[]) { try { - EnumSymbols settings{argv[0]}; + EnumSymbols settings{argc, argv}; try { settings.parse(argc, argv); @@ -79,11 +80,11 @@ int main(int argc, char* argv[]) { dbghelp.enum_symbols(id, settings.get_mask(), [&](const pdb::SymbolInfo& symbol) { if (!settings.type_specified() || settings.get_type() == symbol.get_type()) - std::cout << symbol.get_name() << '\n'; + boost::nowide::cout << symbol.get_name() << '\n'; }); } } catch (const std::exception& e) { - std::cerr << "error: " << e.what() << '\n'; + boost::nowide::cerr << "error: " << e.what() << '\n'; return 1; } return 0; |