On Tuesday, January 19, 2016 9:37:39 AM CET Thiago Macieira wrote:
> On Tuesday 19 January 2016 17:48:48 Giuseppe D'Angelo wrote:
> > On Tue, Jan 19, 2016 at 5:07 PM, Thiago Macieira
> > <thiago.macie...@intel.com>> 
> > wrote:
> > > std::string someString()
> > > {
> > > 
> > >         return constexpr_string("foo");
> > > 
> > > }
> >  
> >  "constexpr_string" should very likely return a const std::string, so this
> > 
> > will copy and not move...
> 
> Right, which would make the entire thing pointless.

It should remove a `const std::string&` and then it is not pointless.

-- 
Milian Wolff | milian.wo...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to