Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-11-22 08:59:38

On Thursday 22 November 2001 06:52 am, you wrote:
> The following does not compile on Borland C++. I am getting very confused
> by all the macros in signal_template.hpp, any idea what the problem is?

> Error E2034
> C:\PROGRA~1\Borland\CBUILD~1\Bin\..\include\boost/signals/signal_template.h
>p p 217:
> Cannot convert 'std::string' to 'detail::signals::args1<std::string,int>'
> in function signal1<void,std::string,return_last_value<void> >::operator
> ()(std::string)

This is strange. The code is fine, but Borland doesn't seem to like the { ..
} aggregate initialization construct.I'll do it the long way for the next
release, so instead of:

args1<...> args = { a0 };

it will be:

args1<...> args(a0);

with an appropriately defined consturctor to args.


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