optional lite - A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
403
stars
45
forks
source link
Constructor/destructor of optional type called twice #59
Closed
deadem closed 3 years ago
Code to reproduce:
Expected:
Output:
Live code: https://godbolt.org/z/5T575q (gcc 7.5 vs gcc latest output)