mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
format() bool support
This commit is contained in:
@@ -160,6 +160,8 @@ namespace
|
||||
str << AnyCast<Int64>(any);
|
||||
else if (any.type() == typeid(UInt64))
|
||||
str << AnyCast<UInt64>(any);
|
||||
else if (any.type() == typeid(bool))
|
||||
str << AnyCast<bool>(any);
|
||||
}
|
||||
|
||||
|
||||
@@ -176,6 +178,9 @@ namespace
|
||||
prepareFormat(str, type);
|
||||
switch (type)
|
||||
{
|
||||
case 'b':
|
||||
str << AnyCast<bool>(*itVal++);
|
||||
break;
|
||||
case 'c':
|
||||
str << AnyCast<char>(*itVal++);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user