2 ms·
People do use the reference to const as a way to imply something similar to value semantics... but it's a huge mistake to say that implies that a copy of the va
by cbsmith 10y ago
People do use the reference to const as a way to imply something similar to value semantics... but it's a huge mistake to say that implies that a copy of the value is implied. Ever since rvalue references were introduced, the rationale for having a const ref interface to avoid an unnecessary copy kind of became an anachronism.