Boost logo

Boost :

Subject: Re: [boost] [test] Trunk broken: What happened to test_exec_monitor?
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-10-02 16:54:55

Hi Gennadiy,

On Sunday, 2. October 2011 20:44:10 Gennadiy Rozental wrote:
> Jürgen Hunold <juergen.hunold <at>> writes:
> > And gcc-4.6.2 fails to compile the changed execution_monitor.cpp
> >
> > error: no matching function for call to
> > ‘execution_monitor::execute(forward)’
> Can you tell why it fails to perform implicit construction of
> boost::function<int ()>? Should I use explicit one?

It seems the nested struct is the problem.
clang trunk compiles, but warns:

warning: template argument uses local type 'boost::execution_monitor::forward'

moving the struct "forward" out of the function make gcc compile this.
Just putting this into the "detail" namespace works. Please find a quick patch
attached. (git diff from git svn).



Dipl.-Math. Jürgen Hunold       | IVE mbH
Software-Entwickler             | Lützerodestraße 10 
Tel: +49 511 897668 33          | 30161 Hannover, Germany
Fax: +49 511 897668 29          |
juergen.hunold_at_[hidden]        | 
                                | Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer               
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke  

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