`emplace` should return the value emplaced
improbable-nickkrempel opened this issue · 2 comments
improbable-nickkrempel commented
Currently it returns void instead of a reference to the emplaced value.
See https://en.cppreference.com/w/cpp/utility/optional/emplace.
martinmoene commented
Thanks. This appears to be a fault in the Readme.
improbable-nickkrempel commented
Ah yes, the code was already fixed in 465a8bd. Thanks!