By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,955 Members | 1,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,955 IT Pros & Developers. It's quick & easy.

boost:::bind problem syntax error with redefined new

P: n/a
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.
Aug 18 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Mon, 18 Aug 2008 10:51:48 +0200, kittymaguire
<ka***************@hotmail.comwrote:
boost::bind(&BoostWorkerThread::Stop, this)

boost::bind(&BoostWorkerThread::Stop, this,_1);
Aug 18 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.