Help

Why doesn't C++ allow the passing of complex, compound and compound/complex data types by value?
It does. Perhaps you're doing it incorrectly.
By complex do you mean this?

http://cplusplus.com/reference/std/complex/

Why doesn't C++ allow the passing of complex, compound and compound/complex data types by value?


Do you mean a class? Your compiler "should" write a copy constructor for you, assuming you didn't already write one (or make it private).


Last edited on
Topic archived. No new replies allowed.