------- Comment #3 from jeffp at doomsday dot org 2006-02-15 19:55 ------- The casting work-around doesn't compile under GCC. It requires that the template parameter be a constant-expression (which is true), which results in the following error:
error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression I have yet to be able to figure out a work-around. MSVC allows the cast, but works with or without it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26205