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

  • Home
  • SEARCH
  • 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 7782837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:39:54+00:00 2026-06-01T19:39:54+00:00

I am writing a C++ library in Xcode 4.2. One of my classes won’t

  • 0

I am writing a C++ library in Xcode 4.2.

One of my classes won’t compile with this error:

attempt to use a deleted function

There is no specific indication what function it’s talking about.
I don’t want to post the class code here, but does anybody have any idea what this error means?

  • 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-01T19:39:56+00:00Added an answer on June 1, 2026 at 7:39 pm

    In C++11 you can declare functions as deleted:

    struct Foo {
        Foo(const Foo &) = delete;
    };
    

    Attempting to use such a function is an error. The purpose of doing this is so that, in this example, copy construction of this type is not possible. This is a more direct replacement for the non-copyable trick used pre-C++11.

    Also, there are rules in the C++ spec that lead to member functions being implicitly deleted.

    The error is telling you that your program attempts to use a deleted function. You’ll have to post the error you’re getting for more detailed help.

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

Sidebar

Related Questions

I'm writing a library for mobile devices. This library notifies the users when certain
I am writing a library to generate PDF reports using prawn reports. One of
I am writing a library which is a set of classes meant to be
I am writing a library that generates derived classes of abstract classes dynamically at
I'm writing C++ code on a mac. Why do I get this error when
I'm writing Cocoa code that uses some classes defined in a C++ library. I
I am writing a library where I need to use some constant integers. I
Xcode creates its .xcarchive bundles here: ~/Library/Developer/Xcode/Archives/ProjName MM-DD-YY h.mm AM.xcarchive This is fine for
I'd like to find a JPEG-writing library that can be statically linked (so there
Trying to use virutalenv version 1.6.4 (the latest at writing this post) on 10.7,

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.