abumq / easyloggingpp

C++ logging library. It is powerful, supports asynchronous low latency, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
MIT License
3.79k stars 927 forks source link

Can't include in vc++ library. #229

Open pauldotknopf opened 9 years ago

pauldotknopf commented 9 years ago
error C2664: 'void (__cdecl *signal(int,void (__cdecl *)(int)))(int)' : cannot convert argument 2 from 'const el::base::debug::CrashHandler::Handler' to 'void (__cdecl *)(int)'    d:\git\enciris\src\dependencies\easylogging++.h 5381

Any ideas?

abumq commented 9 years ago

That's weird, Handler is defined as typedef void (*Handler)(int) - I will see if using std::function<void(int)> is useful here.

abumq commented 9 years ago

What VC++ is this? (version)

pauldotknopf commented 9 years ago

VC++ 2013 and 2012 both were doing it for me.