Re:What Rust Can Do That Other Languages Can't
by blub on Monday February 06, 2017 @10:48AM
(#13580489)
Oh ok, my bad.
Then the C++ translation above should probably be a const& in C++, which is acceptable.
The returned reference could in that case be stored, but it's risky and a bad practice.
Then the C++ translation above should probably be a const& in C++, which is acceptable. The returned reference could in that case be stored, but it's risky and a bad practice.