In a recent post the use of enum was described as 'archaic' why would that be? Surely its a convenient way of listing a group of constants?
In a recent post the use of enum was described as 'archaic' why would that be? Surely its a convenient way of listing a group of constants?
Perhaps it was about template metaprogramming:
Code:template <int N> struct Archaic { enum { value = N }; }; template <int N> struct Modern { static const int value = N; };
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.