Just want to confirm that type of templated variable can be independent of template. This compiles by g++:
template<class T>
constexpr long MAX_AS_LONG = static_cast<long>(std::numeric_limits<T>::max());
Does it confirm to the standard?
(In all the examples on the internet, type of templated variable is T
itself).