Use const and non-const duplicated members instead of inout