template<typename T>
constexpr bool is_reference_c = is_reference<T>::value;
Concepts Lite will add constexpr functions that allow Is_default_constructible<T>() and Is_same<T, U>(), do we need variables if we have those? Is there any advantage to having both? I would expect a proposal to include some discussion of that.
W dniu wtorek, 28 maja 2013 12:37:43 UTC+2 u�ytkownik Jonathan Wakely napisa�:Concepts Lite will add constexpr functions that allow Is_default_constructible<T>() and Is_same<T, U>(), do we need variables if we have those?� Is there any advantage to having both?� I would expect a proposal to include some discussion of that.
With the acceptance of the operator() for integral_constant, the both proposal may be merged by declaring:
template<typename T>
constexpr is_bind_expression<T> Is_bind_expression;
Then Is_bind_expression<T> will be both convertible to bool (via constexpr conversion operator) and expression Is_bind_expression<T>() used by Concepts-lite will be well-formed.