I really can't tell if the code has the intended effect, but it largely looks reasonable.
I presume from the comment trail that vanvugh will verify?
BTW the ARRAY_SIZE is better written as a simple template:
template<typename Type, size_t N> inline size_t length_of(Type (&)[N]) { return N; }
« Back to merge proposal
I really can't tell if the code has the intended effect, but it largely looks reasonable.
I presume from the comment trail that vanvugh will verify?
BTW the ARRAY_SIZE is better written as a simple template:
template<typename Type, size_t N>
inline size_t length_of(Type (&)[N]) { return N; }