mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04: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 { // anonymous namespace for helper methods - not visible outside this header file
|
||||
// Some utility structs to check template specialization
|
||||
template<typename Test, template<typename...> class Ref>
|
||||
struct is_specialization : std::false_type {};
|
||||
@ -67,6 +68,7 @@ T get_from_list(const std::list<T>& aList, size_t aIndex) {
|
||||
}
|
||||
return T();
|
||||
}
|
||||
}
|
||||
|
||||
class Argument {
|
||||
friend class ArgumentParser;
|
||||
|
Loading…
Reference in New Issue
Block a user