From 9b54b6e0fe8634e2be18426d2368ebdd2d792a5d Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Fri, 18 May 2018 10:45:30 +0200 Subject: [PATCH] Undef error macros at end of file --- include/CLI/Error.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/CLI/Error.hpp b/include/CLI/Error.hpp index 2a658d2d..6a506135 100644 --- a/include/CLI/Error.hpp +++ b/include/CLI/Error.hpp @@ -13,7 +13,8 @@ namespace CLI { -// Use one of these on all error classes +// Use one of these on all error classes. +// These are temporary and are undef'd at the end of this file. #define CLI11_ERROR_DEF(parent, name) \ protected: \ name(std::string name, std::string msg, int exit_code) : parent(std::move(name), std::move(msg), exit_code) {} \ @@ -289,6 +290,9 @@ class OptionNotFound : public Error { explicit OptionNotFound(std::string name) : OptionNotFound(name + " not found", ExitCodes::OptionNotFound) {} }; +#undef CLI11_ERROR_DEF +#undef CLI11_ERROR_SIMPLE + /// @} } // namespace CLI