martinmoene / variant-lite

variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
239 stars 26 forks source link

`emplace` should return the value emplaced #21

Closed improbable-nickkrempel closed 6 years ago

improbable-nickkrempel commented 6 years ago

Currently it returns void instead of a reference to the emplaced value.

See https://en.cppreference.com/w/cpp/utility/variant/emplace.

martinmoene commented 6 years ago

Changed in 2438e36fb1eeaff134f9f1c102ba99711c9d55c1