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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:45:10+00:00 2026-05-24T20:45:10+00:00

In VS 2010 SP1, the following: class Foo { public: Foo() { } Foo(Foo

  • 0

In VS 2010 SP1, the following:

class Foo
{
public:
    Foo() { }
    Foo(Foo const&) = delete; // Line 365
    Foo& operator=(Foo const&) = delete; // Line 366
};

does not compile. It complains:

CPPConsole.cpp(365): error C2059: syntax error : ‘;’
CPPConsole.cpp(365): error C2238: unexpected token(s) preceding ‘;’
CPPConsole.cpp(366): error C2059: syntax error : ‘;’
CPPConsole.cpp(366): error C2238: unexpected token(s) preceding ‘;’

Is this not supported yet? The strange thing is, Intellisense seems to recognize this construct. It says “IntelliSense: function “Foo::operator=(const Foo &)” (declared at line 366) cannot be referenced — it is a deleted function”

What am I missing?

  • 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-05-24T20:45:11+00:00Added an answer on May 24, 2026 at 8:45 pm

    VS 2010 has something of a dual personality. Specifically, it actually has two entirely separate compiler front ends.

    When you compile the code, that’s done with Microsoft’s own compiler, which goes all the way back to MS C 3.0 for MS-DOS, released ~3 decades ago (in case you’re wondering why it was 3.0, MS sold a re-labeled version of Lattice C before that).

    Up until VS 2008, the parsing in the IDE was rather primitive compared to the compiler’s, so it didn’t parse a lot of more sophisticated C++ quite correctly. They decided that was unacceptable, and rather than try to upgrade the IDE’s existing parser to match the compiler’s, they licensed the EDG compiler front-end.

    This gives more or less the opposite situation: the IDE’s parser for Intellisense is now considerably closer to conforming than the one on the compiler, and recognizes a fair number of C++0x constructs that the compiler doesn’t.

    There’s a little more to the story than just that though: the EDG compiler front-end supports a switch to make it act more like VC++, including emulating a fair number of VC++ bugs. Although I don’t have data to confirm it, my assumption would be that Microsoft uses that capability. Since that’s based on EDG taking the VC++ compiler, and emulating its bugs, it’s probably a fair guess that (at least usually) EDG’s VC++ emulation will run about a version behind VC++ itself. That gives the somewhat paradoxical situation where EDG (in normal use) is normally quite a bit ahead of VC++, but the version MS uses in the IDE is probably doing to be at least slightly behind most of the time.

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

Sidebar

Related Questions

I use MSVC 2010 SP1 and I have the following line of C++ code:
Consider the following program: #include <cstddef> #include <cstdio> void f(char const*&&) { std::puts(char const*&&);
I'm running Visual Studio 2010 SP1. When I try to package an Azure application
I'm using TFS 2010 SP1 Lab Management and a variation on the LapDeployTemplate to
when I am installing visual studio 2010 SP1 I get an error.read POSTS .
I'm running Visual studio 2010 with SP1 on Windows 8 Developer Preview. When I
Using Visual Studio 2010 SP1, SQL server 2008: Motherboard recently failed and I migrated
Pretty simple problem to explain: In Visual Studio 2010 SP1, I'm seeing weird indentation
Setup: I am using MVC 3, EF 4.1, Visual Studio 2010 SP1 with Power
According to The Gu, in VS 2010 SP1 (http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx) I should be able to

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.