Copy Constructor - Explicit Copy Constructor

Explicit Copy Constructor

An explicit copy constructor is one that is declared explicit by using the explicit keyword. For example:

explicit X(const X& copy_from_me);

It is used to prevent copying of objects at function calls or with the copy-initialization syntax.

Read more about this topic:  Copy Constructor

Famous quotes containing the words explicit and/or copy:

    Like dreaming, reading performs the prodigious task of carrying us off to other worlds. But reading is not dreaming because books, unlike dreams, are subject to our will: they envelop us in alternative realities only because we give them explicit permission to do so. Books are the dreams we would most like to have, and, like dreams, they have the power to change consciousness, turning sadness to laughter and anxious introspection to the relaxed contemplation of some other time and place.
    Victor Null, South African educator, psychologist. Lost in a Book: The Psychology of Reading for Pleasure, introduction, Yale University Press (1988)

    I believe it has been said that one copy of The Times contains more useful information than the whole of the historical works of Thucydides.
    Richard Cobden (1804–1865)