Support stream width and fill and write directly to stream buffer

This commit is contained in:
Glen Fernandes
2020-04-10 16:11:48 -04:00
parent 9f8765e752
commit c8ce84089b
5 changed files with 249 additions and 34 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ int main()
{
std::wostringstream os;
os.width(1);
os.fill('.');
os.fill(L'.');
os.setf(std::ios_base::left, std::ios_base::adjustfield);
boost::io::ostream_put(os, L"xy", 2);
BOOST_TEST(os.good());
@@ -45,7 +45,7 @@ int main()
{
std::wostringstream os;
os.width(1);
os.fill('.');
os.fill(L'.');
os.setf(std::ios_base::right, std::ios_base::adjustfield);
boost::io::ostream_put(os, L"xy", 2);
BOOST_TEST(os.good());