Romain Geissler @ Amadeus
75eb0ca7cb
Avoid clang 10 -Wimplicit-int-float-conversion warning/error when converting int into float ( #2943 )
...
Example of warning (error when using -Werror) we get with clang 10:
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-6/include/Poco/Dynamic/VarHolder.h:444:14: error: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion]
if (from > std::numeric_limits<T>::max())
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-6/include/Poco/Dynamic/VarHolder.h:332:4: note: in instantiation of function template specialization 'Poco::Dynamic::VarHolder::checkUpperLimitFloat<float, int>' requested here
checkUpperLimitFloat<F,T>(from);
^
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-6/include/Poco/Dynamic/VarHolder.h:2175:3: note: in instantiation of function template specialization 'Poco::Dynamic::VarHolder::convertToSmaller<float, int>' requested here
convertToSmaller(_val, val);
^
2022-05-28 21:14:04 -05:00
Alex Fabijanic
a1819107de
refactor(Placeholder): more SOO consolidation and optimization
2022-04-19 09:03:47 +00:00
Aleksandar Fabijanic
45cbee7c0e
refactor(Placeholder): ifdef POCO_NO_SOO only in Placeholder and remove it anywhere else ( #3566 )
2022-04-18 14:28:27 -05:00
Aleksandar Fabijanic
9c976da830
Refactor/any soo ( #3564 )
...
* refactor(Any): SOO
- encapsulate data holders
- add missing gets and ops
- eliminate g++ warnings with enable_if's
- default enable SOO
* refactor(Placeholder): encapsulate SOO memory management and fix leaks; cf. #3297 #3514
* fix(Placeholder): asan errors and add tests
cf. #3297 #3514
2022-04-16 06:38:55 -05:00
Günter Obiltschnig
70da508a79
style/whitespace
2021-06-26 06:30:49 +02:00
Günter Obiltschnig
7569ccf82b
#3318 : Data: Support Poco::UUID for data binding
2021-06-19 08:40:49 +02:00
Günter Obiltschnig
fff8eb6f45
Fix typo: overriden -> overridden
2021-04-14 20:12:17 +02:00
Günter Obiltschnig
12d3bf9c75
#2945 : Iterating over Var containing empty container throws "Out of range" exception
2021-04-11 16:22:42 +02:00
Günter Obiltschnig
9e36cea203
fix JSON object formatting and tests
2020-07-29 11:40:40 +02:00
Günter Obiltschnig
aa46e9b6e4
fixed type overloads
2020-01-09 18:02:29 +01:00
Günter Obiltschnig
03d1dd9822
fixes for macos/clang
2020-01-09 11:53:03 +01:00
Günter Obiltschnig
1bf40a0cd2
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
2020-01-09 10:08:09 +01:00
Aleksandar Fabijanic
231ef2762d
Preserve entries order in DynamicStruct #2410 ( #2413 )
...
* Preserve entries order in DynamicStruct #2410
* disable C++11 default
* ifdef C++11 code
2018-08-01 08:06:59 -07:00
Alex Fabijanic
ff262d6c5f
make DynamicStruct::toString() const
2018-07-26 18:47:01 -05:00
Günter Obiltschnig
b96b07a9ad
Merge pull request #1882 from Burgch/uint64-dynamic-var
...
Add support for (unsigned) long long when long is 64bit
2017-11-07 15:18:48 +01:00
Alex Fabijanic
6efab2cd58
back-port JSON and accompanying Foundation portions (JSONString, Dynamic::Var etc)
2017-09-25 15:15:05 -05:00
Conor Burgess
fe693de41d
Add support for (unsigned) long long when long is 64bit
2017-09-11 15:55:54 +01:00
Günter Obiltschnig
04e7e04d4d
Remove \$Id`$ headers
2017-09-09 11:14:06 +02:00
Aleksandar Fabijanic
bd057090c3
Var BadCastException #861
2015-06-10 09:04:19 -05:00
Guenter Obiltschnig
fa4989e0c7
fixed #592 : Incorrect format string in Poco::Dynamic::Struct
2014-11-07 10:43:50 +01:00
Guenter Obiltschnig
544229302e
#538 prevent destructors from throwing exceptions
2014-09-19 09:46:49 +02:00
Guenter Obiltschnig
f2512856ee
added Var::isBoolean() and fixed JSON stringifier
2014-09-18 20:57:34 +02:00
Alex Fabijanic
5d7d1d3c07
GH #481 : 2 warnings during Poco compile
2014-07-09 20:35:47 -05:00
Alex Fabijanic
1aa28e1491
GH #290 : Unicode support
2014-05-21 03:28:24 -05:00
Roger Meier
b0581433a7
LICENSE: add info about SPDX-License-Identifier usage and use it
...
fix: remove executable flag and change back to 100644 (was 100755)
Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718
LICENSE: add info about SPDX-License-Identifier usage and use it
...
Signed-off-by: Roger Meier <roger@bufferoverflow.ch>
2014-05-04 21:02:42 +02:00
Alex Fabijanic
e3d7fc104e
Parse JSON as structure #365
2014-03-07 20:45:32 -06:00
Patrick White
c0f326153a
Prevent warnings by removing parameters from methods that don't use them.
2013-08-30 09:28:13 -04:00
Akihiro Yamasaki
d61eaaac28
Fixed code page warning.
2013-07-09 13:56:35 +09:00
Aleksandar Fabijanic
bc808cf9d4
WebNotifier example
...
- added WebNotifier example
- fixed/tidied up SOO alignment code
2013-05-30 23:23:37 -05:00
Aleksandar Fabijanic
e5eaffb790
removed Var iterators, fixed SOO alignment
...
- removed unnecessary using directives in Data library
- removed iterator pointers from Var (reduce size, always return copy)
- added Alignment header (adapted from LLVM infrastructure)
- added alignment guards to SOO implementations
2013-05-29 23:36:45 -05:00
Aleksandar Fabijanic
b9d25faef8
more clang fixes
2013-05-27 21:33:29 -05:00
Aleksandar Fabijanic
aa6e993734
clang compile
2013-05-27 21:33:28 -05:00
Aleksandar Fabijanic
38131d452d
Var/JSON changes
...
- JSON support for Dynamic Struct and Array
- added VarIterator
- modified behavior of empty Var
2013-05-27 21:33:27 -05:00
Aleksandar Fabijanic
f9aea9acdf
GH #144 : Poco::Dynamic emits invalid JSON
...
GH #144 : Poco::Dynamic emits invalid JSON
2013-04-06 11:04:33 -05:00
Aleksandar Fabijanic
d0ff7ccf7c
add toString()
2013-04-03 22:03:39 -05:00
Aleksandar Fabijanic
1f4afb9c6c
improved SOO swap, fixed Darwin-clang build config
2013-03-31 16:28:53 -05:00
aleks-f
f78a4e8965
factor out Var destruction
2013-02-17 17:05:36 -06:00
Alex
2661b54ff6
work around static union member (non-C++03)
2013-02-05 22:56:03 -06:00
aleks-f
21da0129b6
Dynamic::Var SOO
...
Dynamic::Var small object optimization and some refactoring
2013-02-05 22:12:21 -06:00
Patrick White
180ad81cb3
Comment out unused function parameters to prevent compiler warnings in client code.
2012-11-28 15:03:56 -05:00
Guenter Obiltschnig
79eab26377
the great line endings cleanup
2012-11-11 09:57:01 +01:00
Aleksandar Fabijanic
e7ee78baa5
remove Var::operator const std::string & ()
2012-09-25 23:50:15 +00:00
Aleksandar Fabijanic
d8397b9153
- VS2012: build/tests
...
- JSON: style and exceptions catch by ref fix
- NumberParser: case-insensitive hex parsing
- Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor)
- LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable)
- small buildwin.cmd vsvars32.bat call fix
2012-09-24 03:51:40 +00:00
Aleksandar Fabijanic
d75e68c027
new trunk (base for 1.5)
...
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7
removing old trunk files
2012-04-23 00:43:14 +00:00
Aleksandar Fabijanic
019572be51
[SF 2715031] DynamicAny double to float conversion
2009-04-01 19:15:22 +00:00
Marian Krivos
b99f4b6d1f
OpenSolaris + SunPro C++ compile fix
2009-02-24 22:00:36 +00:00
Aleksandar Fabijanic
c92d329399
[SF 2520679] JSON strings enclosed in single quotes
...
[SF 2520849] Dynamic/Pair support
2009-01-19 20:08:04 +00:00
Aleksandar Fabijanic
ea664cfee6
[SF 2492462] Dynamic/Struct.h : Compilation Error with mingw
2009-01-13 14:00:44 +00:00