diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 17:56:22 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 17:56:22 +0200 |
| commit | bb9fa32a9048a838d2255f121c8f68e7a72031a9 (patch) | |
| tree | a74fd57ddfc42834e51053dbb15424a853a30cc4 /utils/pdb_descr.hpp | |
| parent | upgrade from typedef to using (diff) | |
| download | winapi-debug-bb9fa32a9048a838d2255f121c8f68e7a72031a9.tar.gz winapi-debug-bb9fa32a9048a838d2255f121c8f68e7a72031a9.zip | |
use regular `throw` instead of the Boost function
Diffstat (limited to '')
| -rw-r--r-- | utils/pdb_descr.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp index 3e24f2c..e86135e 100644 --- a/utils/pdb_descr.hpp +++ b/utils/pdb_descr.hpp @@ -22,11 +22,11 @@ struct PDB { const auto sep_pos = src.find(sep); if (sep_pos == std::string::npos) - boost::throw_exception(boost::program_options::invalid_option_value{src}); + throw boost::program_options::invalid_option_value{src}; winapi::Address online_base; if (!winapi::address::parse(online_base, src.substr(0, sep_pos))) - boost::throw_exception(boost::program_options::invalid_option_value{src}); + throw boost::program_options::invalid_option_value{src}; return {online_base, src.substr(sep_pos + 1)}; } @@ -34,7 +34,7 @@ struct PDB { static winapi::Address parse_address(const std::string& src) { winapi::Address dest; if (!winapi::address::parse(dest, src)) - boost::throw_exception(boost::program_options::invalid_option_value{src}); + throw boost::program_options::invalid_option_value{src}; return dest; } }; |
