[Development] Question about QCoreApplicationData::*_libpaths

Milian Wolff milian.wolff at kdab.com
Wed Jan 20 11:46:05 CET 2016


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.macieira at 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.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list