Possible Duplicate:
Is there a difference in C++ between copy initialization and direct initialization?
class Animal{};
int main(){
Animal white_cat;
Animal black_cat(white_cat);
Animal brown_cat = white_cat;
}
I know here both initialization done by copy constructor. But performance or memory wise are there any different among these two initializing? Animal black_cat(white_cat); Animal brown_cat = white_cat;
If not why are there two way to do the same thing?