I am using VC2005 and have refined new to be new
(_NORMAL_BLOCK ,__FILE__, __LINE__) for the debug build so that the
location of memory leaks are reported.
The problem that I have is when, I try to bind a functor using
boost::bind
boost::bind(&BoostWorkerThread::Stop, this)
I get an syntax error in function_template.hpp '('
assign_functor(FunctionObj f, function_buffer& functor, mpl::true_)
{
new ((void*)&functor.data) FunctionObj(f);
}
if I do not refined new, then there is no compile error.
Question, how can I redefine new and still use boost.