aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-05 17:56:22 +0200
committerEgor Tensin <egor@tensin.name>2026-06-05 17:56:22 +0200
commitbb9fa32a9048a838d2255f121c8f68e7a72031a9 (patch)
treea74fd57ddfc42834e51053dbb15424a853a30cc4
parentupgrade from typedef to using (diff)
downloadwinapi-debug-bb9fa32a9048a838d2255f121c8f68e7a72031a9.tar.gz
winapi-debug-bb9fa32a9048a838d2255f121c8f68e7a72031a9.zip
use regular `throw` instead of the Boost function
-rw-r--r--utils/pdb_descr.hpp6
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;
}
};