[C++-sig] assign a pointer to global object
David Abrahams
dave at boostpro.com
Thu Jul 24 03:00:11 CEST 2008
on Wed Jul 23 2008, Gennadiy Rozental <rogeeff-AT-gmail.com> wrote:
>
> adding boost::ref to the
>
> obj.attr( "aaa" ) = boost::ref( s_global );
>
> did resolve the issue, though I am quite confused why it is required.
Reference semantics is generally unsafe, so we make you request it explicitly.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
More information about the Cplusplus-sig
mailing list