diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:20:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:47:11 +0300 |
commit | fcdaeaaee9b4a36ba2c9dfdf9c6e40d3ef7dfe58 (patch) | |
tree | b1fcfc14119007fdac2fdbc0183aa69013df84fe /utils | |
parent | mingw builds: workaround incorrect SymLoadModule64 (diff) | |
download | winapi-debug-fcdaeaaee9b4a36ba2c9dfdf9c6e40d3ef7dfe58.tar.gz winapi-debug-fcdaeaaee9b4a36ba2c9dfdf9c6e40d3ef7dfe58.zip |
mingw builds: fix boost::program_options::validate overloads
Diffstat (limited to 'utils')
-rw-r--r-- | utils/pdb_descr.hpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp index 34f6266..6d8aeb2 100644 --- a/utils/pdb_descr.hpp +++ b/utils/pdb_descr.hpp @@ -39,17 +39,15 @@ struct PDB { } }; -namespace boost { -namespace program_options { - template <typename charT> void validate(boost::any& dest, const std::vector<std::basic_string<charT>>& src_tokens, PDB*, int) { - validators::check_first_occurrence(dest); - const auto& src_token = validators::get_single_string(src_tokens); - dest = any{PDB::parse(src_token)}; + namespace po = boost::program_options; + po::validators::check_first_occurrence(dest); + const auto& src_token = po::validators::get_single_string(src_tokens); + dest = boost::any{PDB::parse(src_token)}; } template <typename charT> @@ -57,10 +55,8 @@ void validate(boost::any& dest, const std::vector<std::basic_string<charT>>& src_tokens, pdb::Address*, int) { - validators::check_first_occurrence(dest); - const auto& src_token = validators::get_single_string(src_tokens); - dest = any{PDB::parse_address(src_token)}; + namespace po = boost::program_options; + po::validators::check_first_occurrence(dest); + const auto& src_token = po::validators::get_single_string(src_tokens); + dest = boost::any{PDB::parse_address(src_token)}; } - -} // namespace program_options -} // namespace boost |