If I make a typedef such as
typedef int const cint; cint will refer to an int that can't be modified. I can use cint in any context that takes a type (template parameter, function definition, etc).
However, typedefs don't work with templates. My hope is to be able to declare a template like Constant<SomeType> and have this refer to a const SomeType, the way I can do with cint above. Is it possible?
template <typename T> using Constant = const T;template <typename T> using Constant = const T;@PiotrS. beat me by 7 sec :(