Declaring a valarray of references?

Is it permissible to declare, for example, `std::valarray<int&>`? If so, how do I initialize such if the `valarray` is a class member?
Is it permissible to declare, for example, `std::valarray<int&>`?
No

You can use reference_wrapper to achieve same result
Thanks!
std::reference_wrapper<> does not satisfy the requirements of a numeric type.
http://en.cppreference.com/w/cpp/concept/NumericType
Topic archived. No new replies allowed.