Forum Discussion
Altera_Forum
Honored Contributor
11 years agoC++ pass by referenece not working as expected.
I am upgrading NIOS toolsets from 8.1 to 13.1. In 8.1 this code compiled and functioned correctly. In 13.1 this code compiles and mis functions. There are no warnings associated with the code. ...
Altera_Forum
Honored Contributor
10 years agoOh.. just ask yourself "Will derefence of formal parameter occur when assert macro called?".
and btw, why you are using protected constructors? It seems you need the subclass for base class. if no subs should we use private,protected modifiers? The question "Do you understand C++ clearly?"