You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using MS Visual Studio project with turned on memory leaks monitoring its unable to compile format.h cuz free() now becomes a macro _free_dbg( p, _NORMAL_BLOCK ).
2- Try to compile format.cc using MS Visual Studio 2013+ (2015 used).
It will be failed with next messages:
format.h(465): warning C4003: not enough actual parameters for macro 'free'
format.h(475): warning C4003: not enough actual parameters for macro 'free'
format.h(504): warning C4003: not enough actual parameters for macro 'free'
format.h(465): error C2059: syntax error: ','
The text was updated successfully, but these errors were encountered:
https://github.com/cppformat/cppformat/blob/master/format.h#L462
Using MS Visual Studio project with turned on memory leaks monitoring its unable to compile
format.h
cuzfree()
now becomes a macro_free_dbg( p, _NORMAL_BLOCK )
.Suggest to rename this method into
free_buffer()
.Reproducing steps:
1- Modify
format.h
like that:Was:
Now:
2- Try to compile
format.cc
using MS Visual Studio 2013+ (2015 used).It will be failed with next messages:
The text was updated successfully, but these errors were encountered: