User Profile
Collapse
-
Hi , can you answer my last question ? Thanks!... -
Hi,
Thanks a lot! Your post is really helpful in improving my understanding. I understood now that it is so as it can be passed only as a reference/pointer .Also we are assuming that once an instance is created we wont be making a copy of it right. Sorry im just messed up but i think i have read about some design pattern ( its been some time i read so i forgot) says having clone() to create an exact replica of the object. Is it the correct...Leave a comment:
-
why are constructors evil ?
I just downloaded chrome source code and saw the following macros
// A macro to disallow the copy constructor and operator= functions
// This should be used in the private: declarations for a class
#define DISALLOW_COPY_A ND_ASSIGN(TypeN ame) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
// An older, deprecated, politically incorrect name for the above....
No activity results to display
Show More
Leave a comment: