From: curt Date: Thu, 16 May 2002 02:44:35 +0000 (+0000) Subject: Removed SG_STATIC_CONST define. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=786b1e3a3059c0f28c3691dc532c46307d034cff;p=simgear.git Removed SG_STATIC_CONST define. --- diff --git a/simgear/compiler.h b/simgear/compiler.h index 41b43c48..9d6136f2 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -457,17 +457,4 @@ inline const_mem_fun_ref_t<_Ret,_Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) #endif // SG_INCOMPLETE_FUNCTIONAL -/** - * SG_STATIC_CONSTANT workaround. - * On compilers which don't allow in-class initialization of static integral - * constant members, we must use enums as a workaround if we want the constants - * to be available at compile-time. This macro gives us a convenient way to - * declare such constants. - */ -#ifdef SG_NO_INCLASS_MEMBER_INITIALIZATION -# define SG_STATIC_CONST(type,assignment) enum { assignment } -#else -# define SG_STATIC_CONST(type,assignment) static const type assignment -#endif - #endif // _SG_COMPILER_H