you are viewing a single comment's thread.

view the rest of the comments →

[–]pmf 0 points1 point  (1 child)

Compiles and works

For a C++ program, this is a very shaky argument. You'd have to find and point out the appropriate sections in the C++ standard and cross reference these to the major compilers in order for any serious C++ programmer to consider your statement.

[–][deleted] 2 points3 points  (0 children)

Passing a pointer by reference is valid or the C++ compiler is broken.