mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Call add so we are sure we call the specialization for std::string
This commit is contained in:
@@ -49,10 +49,12 @@ public:
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
Array& operator<<(const T& arg)
|
Array& operator<<(const T& arg)
|
||||||
/// Adds the argument to the array
|
/// Adds the argument to the array.
|
||||||
|
/// Note: a std::string will be added as a BulkString because this
|
||||||
|
/// is commonly used for representing strings in Redis. If you
|
||||||
|
/// really need a simple string, use addSimpleString.
|
||||||
{
|
{
|
||||||
addRedisType(new Type<T>(arg));
|
return add(arg);
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Array& operator<<(const char* s);
|
Array& operator<<(const char* s);
|
||||||
@@ -65,6 +67,9 @@ public:
|
|||||||
/// Adds an element to the array.
|
/// Adds an element to the array.
|
||||||
/// Note: the specialization for std::string will add a BulkString!
|
/// Note: the specialization for std::string will add a BulkString!
|
||||||
/// If you really need a simple string, call addSimpleString.
|
/// If you really need a simple string, call addSimpleString.
|
||||||
|
/// Note: the specialization for std::string will add the string as
|
||||||
|
/// a BulkString because this is commonly used for representing strings
|
||||||
|
/// in Redis. If you really need a simple string, use addSimpleString.
|
||||||
{
|
{
|
||||||
addRedisType(new Type<T>(arg));
|
addRedisType(new Type<T>(arg));
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
Reference in New Issue
Block a user