This is one of the legitmate uses of const_cast
const_cast
const std::string* get(ID id) const override { return const_cast<ConcreteStorage*>(this)->get(id); }
2.1m questions
2.1m answers
60 comments
57.0k users