Переглянути джерело

* Fixed compiler error in flags::empty()

master
bergmann 6 роки тому
джерело
коміт
a6d6ca4170
1 змінених файлів з 2 додано та 2 видалено
  1. +2
    -2
      include/cppcore/misc/flags.inl

+ 2
- 2
include/cppcore/misc/flags.inl Переглянути файл

@@ -181,7 +181,7 @@ namespace cppcore
const flags<T_enum, T_base, T_op>& flags<T_enum, T_base, T_op>
::empty()
{
const flags value(0);
static const flags value(0);
return value;
}

@@ -189,7 +189,7 @@ namespace cppcore
const flags<T_enum, T_base, T_op>& flags<T_enum, T_base, T_op>
::all()
{
const flags value(std::numeric_limits<base_type>::max());
static const flags value(std::numeric_limits<base_type>::max());
return value;
}



Завантаження…
Відмінити
Зберегти