[C++-sig] assign a pointer to global object
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.
More information about the Cplusplus-sig