revert (broken build)

This commit is contained in:
Alex Fabijanic 2014-05-22 11:34:35 -05:00
parent 731fb29fcc
commit b416df22fe
2 changed files with 1 additions and 15 deletions

View File

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

View File

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