aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 02:20:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 02:47:11 +0300
commitfcdaeaaee9b4a36ba2c9dfdf9c6e40d3ef7dfe58 (patch)
treeb1fcfc14119007fdac2fdbc0183aa69013df84fe /utils
parentmingw builds: workaround incorrect SymLoadModule64 (diff)
downloadwinapi-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.hpp20
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