format() bool support

This commit is contained in:
Aleksandar Fabijanic
2008-01-15 02:43:04 +00:00
parent 9e8e627347
commit ae607d40e5
3 changed files with 40 additions and 0 deletions

View File

@@ -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;