www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Getting the underlying type of enum?

reply "Tommi" <tommitissari hotmail.com> writes:
How would you go about retrieving the exact underlying type of 
enum?
Jul 17 2012
parent =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <alex lycus.org> writes:
On 17-07-2012 10:56, Tommi wrote:
 How would you go about retrieving the exact underlying type of enum?
Try this: http://dlang.org/phobos/std_traits.html#OriginalType -- Alex Rønne Petersen alex lycus.org http://lycus.org
Jul 17 2012