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
11 years agoSee that's what assuming does for you.
Its the 'assert' that is not working, the rest of code is perfectly happy. The 'assert' is a macro - and I'm guessing the implementation has change to make it not work correctly with the pass by reference method. On to the next issue. Thanks Alun