[Development] Question about QCoreApplicationData::*_libpaths
Giuseppe D'Angelo
dangelog at gmail.com
Tue Jan 19 17:48:48 CET 2016
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...
> std::string g_string;
> void f()
> {
> // move-construction
> static std::string s_string = someString();
>
> // causes move-assignment operator to be called
> g_string = someString();
> }
... otherwise, how is (for instance) g_string.begin() going to work since
it's noexcept?
Cheers,
--
Giuseppe D'Angelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160119/55f52b64/attachment.html>
More information about the Development
mailing list