QNANO
Static_Const_Member.h
1 #ifndef QNANO_NEW_STATIC_CONST_MEMBER_DEFINED_H
2 #define QNANO_NEW_STATIC_CONST_MEMBER_DEFINED_H
3 
4 /* Workaround: "static const" member function have to be "static constexpr"
5  after C++11 standard. GCC6 activated by default the C++14 standard */
6 
7 
8 #if __GNUC__ > 5
9  #define STATIC_CONST_MEMBER static constexpr
10 #else
11  #define STATIC_CONST_MEMBER static const
12 #endif
13 
14 
15 #endif