By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

enum : char ???

P: n/a
In Visual Studio
we can limit the size of an enum by doing:
enum Weekday : char
{
MON, TUE, WED;
};

is that in the stardard C++ ?
or it's just an extension from microsoft?

thanks
--
{ Kelvin@!!! }
remove the last .hk to reply
thanks
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Kelvin@!!!" <ch******************@yahoo.com.hk.hk> wrote in message
news:mbO1e.822009$8l.554537@pd7tw1no...
In Visual Studio
we can limit the size of an enum by doing:
enum Weekday : char
{
MON, TUE, WED;
};

is that in the stardard C++ ?
or it's just an extension from microsoft?


It is a platform-specific extenstions (although it has
been proposed for inclusion in the next C++ standard).
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Jul 23 '05 #2

P: n/a
Kelvin@!!! wrote:
In Visual Studio
we can limit the size of an enum by doing:
enum Weekday : char
{
MON, TUE, WED;
};

is that in the stardard C++ ?
or it's just an extension from microsoft?


Extension.
--
Ioannis Vranos

http://www23.brinkster.com/noicys

[I am using 90 characters word-wrapping - (800/640) *72= 90 or better described as:
(800/640) *80 - 10 for quotation= 90. If someone finds it inconvenient, please let me know].
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.