[Bug libstdc++/80335] perf of copying std::optional<trivial>

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 16 10:07:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Looks like this is fixed. Although the limitations discussed are present:
optional<array<double,1024>> copies the whole array even if it is never
engaged.


More information about the Gcc-bugs mailing list