OS:win10
IDE:VS2017
when using fmtlib in my project,error occured like as:
E1866 error: attribute does not apply to any entity
core.h line:486
same problems here, how do you solve it? thanks.
Fixed it by commenting FMT_DEPRECATED in core.h and format.h (lines where VS pointed to an error).
Simply #define FMT_DEPRECATED before #include <fmt/format.h> in the code that uses fmtlib; no need to mess with the fmtlib source.
Most helpful comment
Simply
#define FMT_DEPRECATEDbefore#include <fmt/format.h>in the code that uses fmtlib; no need to mess with the fmtlib source.