-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.12.4 version Json set enum value failed #4341
Milestone
Comments
xzzh999
changed the title
Poco 1.12.4 Json set enum value failed
1.12.4 version Json set enum value failed
Dec 13, 2023
bas524
added a commit
to bas524/poco
that referenced
this issue
Dec 21, 2023
add testEnum if you set enum as json value then it will be cast to int
aleks-f
pushed a commit
that referenced
this issue
Feb 1, 2024
* 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
matejk
pushed a commit
that referenced
this issue
Mar 26, 2024
* 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
aleks-f
added a commit
that referenced
this issue
Jul 29, 2024
* 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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
got exception:
poco got exception: Can not convert to std::string
if changed to this:
it works fine.
To Reproduce
always failed
Expected behavior
json convert ok
Logs
poco got exception: Can not convert to std::string
Please add relevant environment information:
Additional context
none
The text was updated successfully, but these errors were encountered: