From 95746ae159e40da67ada2feae2a5aa90549b0a63 Mon Sep 17 00:00:00 2001 From: Stephan van Veen Date: Sat, 11 May 2019 13:08:21 +0200 Subject: [PATCH] Put helper methods into anonymous namespace --- include/argparse.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/argparse.hpp b/include/argparse.hpp index c8dfdc6..0b6c1eb 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -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 class Ref> struct is_specialization : std::false_type {}; @@ -67,6 +68,7 @@ T get_from_list(const std::list& aList, size_t aIndex) { } return T(); } +} class Argument { friend class ArgumentParser;