cpp: add traits for formatter settings