I'd do:

STLReplace(&m_pref_map, key, value ? BoolValidator::ENABLED : BoolValidator::DISABLED);