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
struct id
{
template<class T>
T operator()(T x) const
{
return x;
}
};
auto int_result = boost::fit::result<int>(id());
static_assert(std::is_same<decltype(int_result(true)), int>::value, "Not the same type");
Consider changing the second-to-last line to:
auto int_result = boost::fit::result<int>(id{});
This makes it obvious that the use of "id" is a construction, not a call.
The text was updated successfully, but these errors were encountered:
For example, in this:
Consider changing the second-to-last line to:
auto int_result = boost::fit::result<int>(id{});
This makes it obvious that the use of "id" is a construction, not a call.
The text was updated successfully, but these errors were encountered: