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.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to