cpp add singleton def for missing