Loki-Astari / ThorsMongo

C++ MongoDB API and BSON/JSON Serialization library
GNU General Public License v3.0
316 stars 71 forks source link

Throw exception when enum value is invalid #79

Closed DonDoff closed 1 year ago

DonDoff commented 2 years ago

Fix for issue https://github.com/Loki-Astari/ThorsSerializer/issues/78

Loki-Astari commented 1 year ago

This functionality has been merged. Though it is been moved to Traits class Traits<EnumName, std::enable_if_t<std::is_enum<EnumName>::value>>::getValue()

Loki-Astari commented 1 year ago

https://github.com/Loki-Astari/ThorsSerializer/blob/master/src/Serialize/test/Issue78Test.cpp