38 struct sbuf : std::streambuf { } xsb, ysb;
39 std::ostream xstrm (0);
40 std::ostream ystrm (0);
47 const std::ios::iostate x_rdstate =
x.rdstate ();
48 const std::streambuf*
const x_rdbuf =
x.rdbuf ();
50 const std::locale
loc =
51 std::locale (std::locale::classic (),
new std::numpunct<char>());
55 y.exceptions (
y.eofbit);
57 y.precision (
x.precision () + 1);
58 y.width (
x.width () + 1);
59 y.fill (
x.fill () + 1);
71 assert (
x.rdstate () == x_rdstate);
72 assert (
x.exceptions () ==
y.exceptions ());
74 assert (
x.precision () ==
y.precision ());