Implicit and explicit copy constructor call

Hello.

In the following code which is implicit and explicit copy constructor call?

classname obj1;
classname obj2(obj1);//
classname obj3;
classname obj3 = obj4;//

And which is better to use to define a constant
#define
or
datatype const variname = value ?
Try to create a constant with preprocessor macro, where the type of the constant is non-trivial, say a std::map<int, std::string>
Did you Google this at all? The first result has your answer.

The second one is explicit and the fourth one is implicit. And as far as constants go, the route I have always taken has been

datatype const variname = value
Topic archived. No new replies allowed.