To add const to a non-const object, which is the prefered method? const_cast or static_cast. In a recent question, s
const
const_cast
static_cast
This is a good use case for an implicit_cast function template.