mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
revert (broken build)
This commit is contained in:
parent
731fb29fcc
commit
b416df22fe
@ -206,16 +206,8 @@ namespace
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
{
|
||||
const Any& val = *itVal++;
|
||||
if (val.type() == typeid(char*))
|
||||
str << AnyCast<char*>(val);
|
||||
else if (val.type() == typeid(const char*))
|
||||
str << AnyCast<const char*>(val);
|
||||
else
|
||||
str << RefAnyCast<std::string>(val);
|
||||
str << RefAnyCast<std::string>(*itVal++);
|
||||
break;
|
||||
}
|
||||
case 'z':
|
||||
str << AnyCast<std::size_t>(*itVal++);
|
||||
break;
|
||||
|
@ -306,12 +306,6 @@ void FormatTest::testString()
|
||||
std::string s(format("%s", foo));
|
||||
assert (s == "foo");
|
||||
|
||||
s = format("%s", "foo");
|
||||
assert (s == "foo");
|
||||
|
||||
s = format("%s", static_cast<const char*>("foo"));
|
||||
assert (s == "foo");
|
||||
|
||||
s = format("%5s", foo);
|
||||
assert (s == " foo");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user