3 ms·
I know that it's a bit dated with respect to modern c++, and it's also a partial rant, but when coming across such articles I get a chuckle from yosefk's C++ FQ
by bradford 7y ago
I know that it's a bit dated with respect to modern c++, and it's also a partial rant, but when coming across such articles I get a chuckle from yosefk's C++ FQA:
What is "const correctness"?(http://yosefk.com/c++fqa/const.html#fqa-18.1 http://yosefk.com/c++fqa/const.html#fqa-18.1)
Should I try to get things const correct "sooner" or "later"? (http://yosefk.com/c++fqa/const.html#fqa-18.3 http://yosefk.com/c++fqa/const.html#fqa-18.3)
What does "const Fred& x" mean? (http://yosefk.com/c++fqa/const.html#fqa-18.6 http://yosefk.com/c++fqa/const.html#fqa-18.6)
Does "Fred& const x" make any sense?(http://yosefk.com/c++fqa/const.html#fqa-18.7 http://yosefk.com/c++fqa/const.html#fqa-18.7)
What does "Fred const& x" mean?(http://yosefk.com/c++fqa/const.html#fqa-18.8 http://yosefk.com/c++fqa/const.html#fqa-18.8)
What's the relationship between a return-by-reference and a const member function?(http://yosefk.com/c++fqa/const.html#fqa-18.11 http://yosefk.com/c++fqa/const.html#fqa-18.11)