From e656d6c02543ba96c0bf7fe46f3d47256d3a4242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 2 Apr 2014 07:27:36 +0000 Subject: [PATCH] basic_split was not copyable in all compiler versions; refs #8 --- src/mrw/iomanip.hxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mrw/iomanip.hxx b/src/mrw/iomanip.hxx index 18196d6..f63d4f8 100644 --- a/src/mrw/iomanip.hxx +++ b/src/mrw/iomanip.hxx @@ -38,6 +38,13 @@ namespace mrw { template > class basic_split /*: public std::basic_ostream<_CharT, _Traits>*/ { public: + basic_split(const basic_split& o): + _width(o._width), + _indent(o._indent), + _fill(o._fill), + _buffer(o._buffer.str()), + _os(o._os) { + } basic_split(int width=80, int indent=0, char fill=' '): _width(width), _indent(indent), _fill(fill), _os(0) { if (_width<_indent)