Closed improbable-nickkrempel closed 6 years ago
Currently it returns void instead of a reference to the emplaced value.
See https://en.cppreference.com/w/cpp/utility/optional/emplace.
Thanks. This appears to be a fault in the Readme.
Ah yes, the code was already fixed in https://github.com/martinmoene/optional-lite/commit/465a8bd38bfd61692948be95b2f317fd0d11d57e. Thanks!
Currently it returns void instead of a reference to the emplaced value.
See https://en.cppreference.com/w/cpp/utility/optional/emplace.