mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Put helper methods into anonymous namespace
This commit is contained in:
parent
8dd508d4b6
commit
95746ae159
@ -44,6 +44,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
namespace argparse {
|
namespace argparse {
|
||||||
|
|
||||||
|
namespace { // anonymous namespace for helper methods - not visible outside this header file
|
||||||
// Some utility structs to check template specialization
|
// Some utility structs to check template specialization
|
||||||
template<typename Test, template<typename...> class Ref>
|
template<typename Test, template<typename...> class Ref>
|
||||||
struct is_specialization : std::false_type {};
|
struct is_specialization : std::false_type {};
|
||||||
@ -67,6 +68,7 @@ T get_from_list(const std::list<T>& aList, size_t aIndex) {
|
|||||||
}
|
}
|
||||||
return T();
|
return T();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Argument {
|
class Argument {
|
||||||
friend class ArgumentParser;
|
friend class ArgumentParser;
|
||||||
|
Loading…
Reference in New Issue
Block a user