瀏覽代碼

* 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;
}



Loading…
取消
儲存