KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's look at a simple example: struct some_struct { std::string str; int a, b, c; } some_struct abc, abc_copy; abc.str = "some text"; abc.a = 1; abc.b = 2; abc.c = 3; abc_copy = abc; Then abc_copy is an exact copy of abc .. how is it possible without defining the = operator ? (This took me by surprise when working on some code..)
Tags (comma-separated)
Save Edits
Cancel