P
perdubug
Somebody told me that Tasking C166 C++ compiler has problems with
temporary objects in function call parameters. He gave me below
examples:
Case 1:Wrong:
rc = foo(&bar());
Case 2:Right:
bar b;
rc=foo(&b);
But he didn't know why...Can anyone show me why? why case 1 is wrong
with Tasking C166 C++ compiler? How about other C++ compilers?
Thanks and Best Regards,
PerduBug
temporary objects in function call parameters. He gave me below
examples:
Case 1:Wrong:
rc = foo(&bar());
Case 2:Right:
bar b;
rc=foo(&b);
But he didn't know why...Can anyone show me why? why case 1 is wrong
with Tasking C166 C++ compiler? How about other C++ compilers?
Thanks and Best Regards,
PerduBug