summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-05-28 08:43:57 +0300
committerTor Lillqvist <tml@iki.fi>2013-05-28 09:16:13 +0300
commit691b6ea8e100fc55f0ff70a82511722733113a07 (patch)
treea02a1e6df3a2e28ab97faed080b76784e8f3fb17
parente0fc16f769efc7b0c0b517a80523bb4e2c87b618 (diff)
Make the SAL_STREAM thing compile with clang++ -std=c++11 -stdlib=libc++
Avoid error: dynamic_cast from rvalue to reference type '::std::ostringstream &'. Change-Id: If5ba1ee79616e81b12f9db67c61b4f085b30a08e
-rw-r--r--include/sal/log.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sal/log.hxx b/include/sal/log.hxx
index 80721d0a0aaa..ca3bb5ecd6c7 100644
--- a/include/sal/log.hxx
+++ b/include/sal/log.hxx
@@ -158,8 +158,7 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) {
@since LibreOffice 3.5
*/
#define SAL_STREAM(stream) \
- (dynamic_cast< ::std::ostringstream & >(::std::ostringstream() << stream). \
- str())
+ (::std::ostringstream() << stream).str()
/**
@page sal_log Basic logging functionality.