Aleksandar Fabijanic 669be63134
Allow set enum as json value (#4363) (#4434)
* Allow set enum as json value (#4363)

* fix issue #4341
add testEnum
if you set enum as json value then it will be cast to int

* add behavour for enum into VarHolderImpl
add tests for enum classes with differnent underline integral types

* replace static_cast with convertTo* methods, they can chaeck types and
limits

* fix missing types for convert methods

* fix code style
add testEnumType to the VarTest.cpp, extract() works

* enh(VarHolder): replace ::value and ::type with shortcuts

---------

Co-authored-by: Alexander B <ale.bychuk@gmail.com>
2024-07-29 23:30:51 +02:00
..
2012-04-23 01:14:34 +00:00
2023-10-15 17:56:48 +02:00
2017-09-09 11:14:06 +02:00
2017-09-09 11:14:06 +02:00
2012-04-23 01:14:34 +00:00
2020-01-11 13:07:11 +01:00
2020-01-11 13:07:11 +01:00
2012-04-23 01:14:34 +00:00