Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8659389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:00:15+00:00 2026-06-12T16:00:15+00:00

When I use a strongly typed enum in VS2010, for example: enum eTest :

  • 0

When I use a strongly typed enum in VS2010, for example:

enum eTest : long long
{
_test1                  = 0x0000000000000001,
_test2                  = 0x0000000000000002,
};

I get this warning:

http://msdn.microsoft.com/en-us/library/ms173702.aspx

nonstandard extension used: specifying underlying type for enum ‘enum’

Why is this? I thought VS2010 supported C++11? Also is a 64bit based enum safe between 64-32bit VS2010 compilers?

Edit:

Regarding the second part of my question: I asked about the 32 vs 64bit because OR’ing bit flags from a 64bit enum when targeting 32bit resulted in compiler errors. However I found out that the reason for is is because enabling Microsoft’s Code Analysis causes this to break.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:00:16+00:00Added an answer on June 12, 2026 at 4:00 pm

    C++11 enums are done like this:

    enum class eTest : long long
    {
        _test1                  = 0x0000000000000001,
        _test2                  = 0x0000000000000002,
    };
    

    See Strongly Type Enumerations

    [EDIT:] And I believe VS 2010 does not have the compiler that supports this. I think C++11 enums were only partially supported in the MSVC++ 10 Compiler

    As far as sizes: check out this page that talks about sizes of data types. Microsoft doesn’t vary much between the 32 and 64 bit versions of their compiler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I always seem to use Get when working with data (strongly typed or otherwise)
1) How can I use strongly typed dictionaries? I have some in my codebehind
I'm getting totally lost and confused on how to use the new strongly typed
I am new in MVC3. When i create a strongly typed view it use
Is it possible to use strongly typed controller name and action name in asp.net
I am developing an ASP.NET MVC project and want to use strongly-typed session objects.
In views i`m passing model strongly typed way like this: System.Web.Mvc.ViewPage<HomeModel> And then just
I'm trying to use an Html.RenderAction in a strongly typed nature from the MVC
I have a requirement to use business objects to call strongly typed table adapters
What is the best practice - to use only strongly typed views without any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.