From a6d6ca41702b21d0817bdfc8d1b982a2b941e541 Mon Sep 17 00:00:00 2001 From: bergmann Date: Mon, 8 Jul 2019 23:43:37 +0200 Subject: [PATCH] * Fixed compiler error in flags::empty() --- include/cppcore/misc/flags.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cppcore/misc/flags.inl b/include/cppcore/misc/flags.inl index 923ed61..f6eaef3 100644 --- a/include/cppcore/misc/flags.inl +++ b/include/cppcore/misc/flags.inl @@ -181,7 +181,7 @@ namespace cppcore const flags& flags ::empty() { - const flags value(0); + static const flags value(0); return value; } @@ -189,7 +189,7 @@ namespace cppcore const flags& flags ::all() { - const flags value(std::numeric_limits::max()); + static const flags value(std::numeric_limits::max()); return value; }