mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 23:20:06 +02:00
++ and -- operators for DynamicAny
This commit is contained in:
@@ -78,6 +78,9 @@ class Foundation_API DynamicAny
|
||||
///
|
||||
/// - for integral and floating point numeric values, following operations are supported:
|
||||
/// '+', '+=', '-', '-=', '*', '*=' , '/' and '/='
|
||||
///
|
||||
/// - for integral values, following operations are supported:
|
||||
/// prefix and postfix increment (++) and decement (--)
|
||||
///
|
||||
/// - for all other types, InvalidArgumentException is thrown upon attempt of an arithmetic operation
|
||||
///
|
||||
@@ -197,6 +200,18 @@ public:
|
||||
DynamicAny operator + (const char* other) const;
|
||||
/// Addition operator specialization for const char*
|
||||
|
||||
DynamicAny& operator ++ ();
|
||||
/// Pre-increment operator
|
||||
|
||||
DynamicAny operator ++ (int);
|
||||
/// Post-increment operator
|
||||
|
||||
DynamicAny& operator -- ();
|
||||
/// Pre-decrement operator
|
||||
|
||||
DynamicAny operator -- (int);
|
||||
/// Post-decrement operator
|
||||
|
||||
template <typename T>
|
||||
DynamicAny& operator += (const T& other)
|
||||
/// Addition asignment operator
|
||||
|
Reference in New Issue
Block a user