You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we know, std::get overloads for a std::tuple can't return values, it always returns a reference(https://en.cppreference.com/w/cpp/utility/tuple/get).
This library shows itself as "tuple-like interface" and i suppose that boost::pfr::get must be fit to std::get in every detail.
But i find that boost::pfr::get in some cases can return a value, and make a copy: https://godbolt.org/z/1GWaqsah4
Can we fix it? Or is it better not to touch it, to prevent a breaking change?
The text was updated successfully, but these errors were encountered:
As we know,
std::get
overloads for astd::tuple
can't return values, it always returns a reference(https://en.cppreference.com/w/cpp/utility/tuple/get).This library shows itself as "tuple-like interface" and i suppose that
boost::pfr::get
must be fit tostd::get
in every detail.But i find that
boost::pfr::get
in some cases can return a value, and make a copy: https://godbolt.org/z/1GWaqsah4Can we fix it? Or is it better not to touch it, to prevent a breaking change?
The text was updated successfully, but these errors were encountered: