aantron / better-enums

C++ compile-time enum to string, iteration, in a single header file
http://aantron.github.io/better-enums
BSD 2-Clause "Simplified" License
1.65k stars 172 forks source link

MACRO redefintions warnings in VS2015 #94

Open Roman-Bober opened 3 years ago

Roman-Bober commented 3 years ago

Getting below warning when using custom generated enum_macros.h file

python make_macros.py"  120 64 > enum_macros.h

enum_macros.h(269): warning C4005: 'BETTER_ENUMS_PP_COUNT_IMPL': macro redefinition enum.h(248): note: see previous definition of 'BETTER_ENUMS_PP_COUNT_IMPL' enum_macros.h(279): warning C4005: 'BETTER_ENUMS_PP_COUNT': macro redefinition enum.h(255): note: see previous definition of 'BETTER_ENUMS_PP_COUNT' enum_macros.h(292): warning C4005: 'BETTER_ENUMS_ITERATE': macro redefinition enum.h(261): note: see previous definition of 'BETTER_ENUMS_ITERATE'

aantron commented 3 years ago

Can you give full instructions for how to reproduce this?