std::remove_const with const references
std::remove_const removes top level const-qualifications. In const T&, which is equivalent to T const&, the qualification is not top-level: in fact, it does not apply to the reference itself (that would be meaningless, because references are immutable by definition), but to the referenced type. Table 52 in Paragraph 20.9.7.1 of the C++11 Standard specifies, regarding … Read more