Fix a test that I broke over the weekend

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@195143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2013-11-19 19:14:27 +00:00
parent 2ccffefaff
commit 16c76a2107

View File

@ -18,16 +18,6 @@
#if _LIBCPP_STD_VER > 11
void both_ways ( const char *p ) {
std::string str(p);
auto q = std::quoted(s);
std::stringstream ss;
bool skippingws = is_skipws ( &ss );
ss << q;
ss >> q;
}
bool is_skipws ( const std::istream *is ) {
return ( is->flags() & std::ios_base::skipws ) != 0;
}
@ -37,6 +27,16 @@ bool is_skipws ( const std::wistream *is ) {
return ( is->flags() & std::ios_base::skipws ) != 0;
}
void both_ways ( const char *p ) {
std::string str(p);
auto q = std::quoted(str);
std::stringstream ss;
bool skippingws = is_skipws ( &ss );
ss << q;
ss >> q;
}
void round_trip ( const char *p ) {
std::stringstream ss;
bool skippingws = is_skipws ( &ss );