Re:C++11 and Boost - Succinct like Python
by ryanmolden on Wednesday October 31, 2012 @05:18PM
(#4724955)
I don't disagree about aliasing, but a print function shouldn't be taking ref to a non-const anything anyways, it should have no need to mutate the vector. You can't clear through a ref to const. Your general point holds but I would say I have probably written/found very few aliasing bugs in C++ over the years, it just doesn't seem to arise often, perhaps your experience differs. Alas there are few ways to prevent dedicated folks from writing really ill-advised code.
[ Parent
| on HN ]
There are no comments on this comment yet.