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 7886085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:13:58+00:00 2026-06-03T05:13:58+00:00

I was told the following was possible due to changes in C++11: class SomeType

  • 0

I was told the following was possible due to changes in C++11:

class SomeType  {
int number;

public:
SomeType(int new_number) : number(new_number) {}
SomeType() : SomeType(42) {}
};

But when I try to build I get an error:

"SomeType" is not a nonstatic data member or base class of class "SomeType"

error C2614: 'SomeType' : illegal member initialization: 'SomeType' is not a base or member

Is this feature not yet supported in Visual Studio 2010? Do I need to configure something to get this to build? What is wrong?

  • 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-03T05:13:59+00:00Added an answer on June 3, 2026 at 5:13 am

    It’s not supported in VS2010. Most C++11 features are not supported in VS2010 (or VS11 for that matter)

    Here is a chart of supported features in VC10 and VC11.

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

Sidebar

Related Questions

I need some confirmation. I always get correct o/p but someone told me following
someone told me the following table isn't fit for the second database normalization. but
Possible Duplicate: Is using $GLOBALS['HTTP_GET_VARS'] deprecated? Invalid arguements in php I get the following
i am trying to create a fade effect with the following...ive been told im
I have a search page with the following scenarios listed below. I was told
I'm currently in University and they're pretty particular about following their standards. They've told
I have the following line in my .gitignore file: var/www/docs/.backroom/billing_info/inv.pl but when I type
Gentoo Wiki told me the following: Warning: GCC 4.2 and above support -march=native. -march=native
I know people often get told off here for using regexes to fiddle with
I was following this quickstart guide, http://www.mongodb.org/display/DOCS/Quickstart+OS+X , but I got lost when they

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.