The compiler performs a matching process to determine which function-template special- ization to call when a function is invoked. Under what circumstances does an attempt to make a match result in a compile error?

What will be an ideal response?


First, the compiler tries to find and use a precise match in which the function names and argument types are consistent with those of the function call. If this fails, the compiler determines whether a function template is available that can be used to generate a function-template specialization with a precise match of function name and argument types. If such a function template is found, the compiler generates and uses the appropriate function-template specialization. If not, there is an error.

Computer Science & Information Technology

You might also like to view...

Which of the following completes the sentence below correctly? A(n)_______ is a(n) ______________.

a. InputEvent, MouseEvent. b. ActionEvent, AdjustmentEvent. c. FocusEvent, WindowEvent. d. ContainerEvent, ComponentEvent.

Computer Science & Information Technology

Which of the following statements is true?

a. Predicate methods typically test a condition and modify the object on which they're called. b. Predicate methods typically do not test a condition and do not modify the object on which they're called. c. Predicate methods typically test a condition and do not modify the object on which they're called. d. Predicate methods typically do not test a condition and modify the object on which they're called.

Computer Science & Information Technology

The ____ is one of Photoshop's greatest features because it allows you to segregate various art components onto different virtual layers within a single document.

A. Tools panel B. Layers panel C. Photos panel D. Document panel

Computer Science & Information Technology

Name two things that the RSA and ElGamal cryptosystems have in common, other than the fact that they are both public-key cryptosystems?

What will be an ideal response?

Computer Science & Information Technology