
26 Mar
2010
26 Mar
'10
2:52 p.m.
On 3/26/2010 9:43 PM, Lars Rohwedder wrote:
I solved the problem by writing
// unchanged: struct Configurable { const char* name; const rule<>& rule; };
// make an explicit object here, not a bound temporary: const rule<> myRule = +(__)>>(...);
// bound the reference to the copy: const Configurable cfg = {"Name", myRule };
and it seems to work. :-)
Yes, that will work. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net http://www.facebook.com/djowel Meet me at BoostCon http://www.boostcon.com/home http://www.facebook.com/boostcon