Hi, On Wed, 2008-05-14 at 15:31 -0500, Carsten Neumann wrote: > Hi, > > Gerrit Voss wrote: > > > > no because it does not return anything, the return statement is > > missing. > > doh, I'm blind, sorry. > > > I wasn't sure if there is just something simple missing or > > if there is more to it. Especially as return gIt->second would return > > a reference to a temporary. > > ok, this is admittedly off topic and not really relevant anymore (that > code is gone now), but I'm curious: why does this return a reference to > a temporary ?
Because the compiler has convert gIt->second to boost::any before returning it. kind regards, gerrit ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
