HomeHEPForge
Diffusion laura 2aa02355d32a

Customise the NLOHMANN_JSON_SERIALIZE_ENUM macro in LauJsonTools

Description

Customise the NLOHMANN_JSON_SERIALIZE_ENUM macro in LauJsonTools

Throws an exception in case of encountering an unknown or invalid
enumeration state - behaviour of macro in nlohmann_json header is to
silently default to the first state, which can lead to unexpected
behaviour.
Also extended the macro to create an output streaming operator.
Consequently, removed all existing such operators for enum types.

Details

Provenance
tlathamAuthored on Mar 3 2023, 5:13 PM
tlathamPushed on Mar 3 2023, 5:18 PM
Parents
rLAURA9be46130a0e9: Tidy up a bit the creation of the DTA splines
Branches
Unknown
Tags
Unknown