From fcdaeaaee9b4a36ba2c9dfdf9c6e40d3ef7dfe58 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 02:20:21 +0300 Subject: mingw builds: fix boost::program_options::validate overloads --- utils/pdb_descr.hpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'utils') 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 void validate(boost::any& dest, const std::vector>& 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 @@ -57,10 +55,8 @@ void validate(boost::any& dest, const std::vector>& 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 -- cgit v1.2.3