Well that was easy, Thanks

Out of curiosity is there a reason const std::string& doesn't work? Would it 
just be more trouble then it's worth to support it?

> To: cplusplus-sig@python.org
> From: d...@boostpro.com
> Date: Thu, 10 Nov 2011 22:00:44 -0500
> Subject: Re: [C++-sig] Python freezing
> 
> 
> on Thu Nov 10 2011, Jay Riley <super24bitsound-AT-hotmail.com> wrote:
> 
> > so it seems as though string isn't in the registry? and the error
> > gets digested silently. This is really weird and I don't quite
> > understand why returning a string causing a problem. Is it because
> > it's returned as a const std::string&? 
> 
> Yep.  Use a thin wrapper that returns by value.
> 
> 
> -- 
> Dave Abrahams
> BoostPro Computing
> http://www.boostpro.com
> 
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
                                          
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to