mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 14:39:53 +01:00
revert (broken build)
This commit is contained in:
parent
731fb29fcc
commit
b416df22fe
@ -206,16 +206,8 @@ namespace
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
{
|
str << RefAnyCast<std::string>(*itVal++);
|
||||||
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);
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case 'z':
|
case 'z':
|
||||||
str << AnyCast<std::size_t>(*itVal++);
|
str << AnyCast<std::size_t>(*itVal++);
|
||||||
break;
|
break;
|
||||||
|
@ -306,12 +306,6 @@ void FormatTest::testString()
|
|||||||
std::string s(format("%s", foo));
|
std::string s(format("%s", foo));
|
||||||
assert (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);
|
s = format("%5s", foo);
|
||||||
assert (s == " foo");
|
assert (s == " foo");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user