Boost logo

Boost :

From: scleary_at_[hidden]
Date: 2002-01-31 13:12:30

> There is nothing wrong with the compiler; the problem is caused by
> boost::function<void, ...>'s void return workaround. It substitutes void
> with boost::detail::function::unusable.

OK; I thought I had to specify the function return type in the call to bind
just becuase function<> was a function object. My mistake; just didn't read
the docs carefully enough...

However, this does bring up a documentation issue with Function. The docs
claim that the first template argument to function<> is typedef'ed as the
result_type, which is true for every type except void...

Just one other little clarification: the error message on my compiler *does*
talk about operator() not able to return a value... but I'm actually running
the command-line interface to the C++Builder 5.0 compiler, which only had 1
patch released... so I don't know if it has bugs that were fixed in the free
command-line compiler (which has had 2 patches) -- a Borland person would
have to answer that one... Just wanted to let you know I'm not insane or
anything! :)

Thanks for the help, guys!

Boost list run by bdawes at, gregod at, cpdaniel at, john at