2. Which of the following statements are advantages of using deleted functions compared to declaring these functions

Question:

2. Which of the following statements are advantages of using deleted functions compared to declaring these functions as private as in the C++98 standard?

a) Calling a deleted function will cause a compile-time error rather than a link-error with C++98.

b) Use of a deleted function in an unevaluated expression leads to a link-error.

c) Friends accessing a private function with missing definition experience a compile-time error.

d) Making deleted functions public results in better error messages in general.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: