poco/Foundation
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
..
cmake fix(cmake): PocoFoundationConfig.cmake should now check for PCRE2 #3677 2022-07-09 19:13:04 +02:00
include/Poco Allow set enum as json value (#4363) (#4434) 2024-07-29 23:30:51 +02:00
samples Sync differences from branch 'master' into 'devel' after release 1.13.3 2024-04-06 10:21:08 +02:00
src enh(ProcessRunner): does not detect launch errors #4482 (#4483) 2024-07-29 20:16:18 +02:00
testsuite Allow set enum as json value (#4363) (#4434) 2024-07-29 23:30:51 +02:00
CMakeLists.txt mingw 11: fixes to compile common libraries 2023-12-14 19:02:11 +01:00
Foundation_vs160.sln revert Foundation project files 2020-01-11 23:59:05 +01:00
Foundation_vs160.vcxproj fix(build): Foundation VS project files 2024-04-03 09:01:34 +02:00
Foundation_vs160.vcxproj.filters chore: fix vs project files 2024-02-19 22:29:26 +01:00
Foundation_vs170.sln Remaining changes for Windows on ARM64 support (#3608) 2022-05-26 22:40:30 -05:00
Foundation_vs170.vcxproj fix(build): Foundation VS project files 2024-04-03 09:01:34 +02:00
Foundation_vs170.vcxproj.filters AsyncObserver (#4444) 2024-02-16 09:34:19 +01:00
Makefile AsyncObserver (#4444) 2024-02-16 09:34:19 +01:00
nonexistent.txt feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 (#4262) 2023-12-22 09:27:34 +01:00