Explorar el Código

* Fixed compiler error in flags::empty()

master
bergmann hace 6 años
padre
commit
a6d6ca4170
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      include/cppcore/misc/flags.inl

+ 2
- 2
include/cppcore/misc/flags.inl Ver fichero

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



Cargando…
Cancelar
Guardar