These are chat archives for fmtlib/fmt

22nd
Sep 2016
Victor Zverovich
@vitaut
Sep 22 2016 14:53
Hey! Thanks for your interest in contributing to fmt. The library must remain C++03 compatible but you can wrap override in a macro as it is done for noexcept: https://github.com/fmtlib/fmt/blob/master/fmt/format.h#L183
Jean-Michaël Celerier
@jcelerier
Sep 22 2016 16:50
okay sure !
would this be ok ?

ifndef FMT_OVERRIDE

if FMT_USE_OVERRIDE || FMT_HAS_FEATURE(cxx_override) || \

(FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \
FMT_MSC_VER >= 1900

define FMT_OVERRIDE override

else

define FMT_OVERRIDE

endif

endif

ugh
sorry

#ifndef FMT_OVERRIDE
# if FMT_USE_OVERRIDE || FMT_HAS_FEATURE(cxx_override) || \
   (FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \
   FMT_MSC_VER >= 1900
#  define FMT_OVERRIDE override
# else
#  define FMT_OVERRIDE
# endif
#endif
Jean-Michaël Celerier
@jcelerier
Sep 22 2016 16:55
I think that it's available since MSVC2010
but for GCC I'm not sure
and clang at least since 3.3 I'd say ?
clang -> 3.0