aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to '')
-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