cpp guard for ST.Safe