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?
This is a discussion on Ancient enum? within the C++ Programming forums, part of the General Programming Boards category; In a recent post the use of enum was described as 'archaic' why would that be? Surely its a convenient ...
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.