// { dg-do compile { target c++11 } } template struct hold { T value; constexpr T&& operator()() && { return static_cast(value); } }; int main() { hold{static_cast(42)}(); }