poco/Foundation/include/Poco/Dynamic
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
..
Pair.h enh: resolve unit test and few other warnings. 2024-05-08 13:25:56 +02:00
Struct.h gcc/clang (-fvisibility=hidden): corrections to compile and work properly (#4394) 2024-01-17 14:13:24 +01:00
Var.h enh(Poco): Mark deprecated functionality with C++ attributes and resolve internal usage of deprecated functions (#4551) 2024-07-29 08:37:35 +02:00
VarHolder.h Allow set enum as json value (#4363) (#4434) 2024-07-29 23:30:51 +02:00
VarIterator.h Remove trailing whitespace (#3668) 2022-07-07 04:18:20 -05:00
VarVisitor.h fix: make headers parseable by CppParser/PocoDoc 2024-02-06 10:00:48 +01:00