Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I think the term "deleted" on the quote you provided is not necessary, as [[dcl.fct.def.delete]/4](eel.is/c++draft/dcl.fct.def.delete#4) already prohibits a deleted definition from occurring after the function's first declaration. Am I missing something here? Commented Oct 23, 2016 at 18:11
  • @Alexander that makes A() = delete; not user-provided. Commented Oct 24, 2016 at 14:15
  • But at least for the defaulted case we know that the function is either user-provided or implicitly provided by the compiler. But for a function that's explicitly deleted, I'm confused, because, as far as I know, this function is never defined. What would be the purpose of defining such a function, that will never be invoked? Commented Oct 24, 2016 at 17:37
  • @Alexander I don't get your question. = delete; is a definition. Classifying A() = delete; as not-user-provided doesn't mean you can define it yourself. Commented Oct 24, 2016 at 20:16