diff --git a/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp b/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp index 2fa50964..1f6b1267 100644 --- a/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp +++ b/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp @@ -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 );