Skip to content

Instantly share code, notes, and snippets.

@TheWisp
TheWisp / debuggablelambda.cpp
Created December 14, 2017 07:55
Debug helper for std::function wrapped lambda
#include <vector>
#include <functional>
template<class F>
struct DebuggableLambda : F
{
template<class F2>
DebuggableLambda(F2&& func, const char* file, int line)
: F(std::forward<F2>(func))
, file(file)