From eae57b865e93100cabd8df01ed9e402ba5342d09 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 21 Jan 2015 11:21:29 -0300 Subject: [PATCH] Don't swap streams as clang and gcc have problems with it --- src/app/cmd/copy_region.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/cmd/copy_region.cpp b/src/app/cmd/copy_region.cpp index 812e5c108..8c8d4ae2c 100644 --- a/src/app/cmd/copy_region.cpp +++ b/src/app/cmd/copy_region.cpp @@ -89,7 +89,9 @@ void CopyRegion::swap() } } - std::swap(m_stream, tmp); + // TODO use m_stream.swap(tmp) when clang and gcc support it + m_stream.str(tmp.str()); + m_stream.clear(); } } // namespace cmd