Nah, we still need the dynamic_cast in SAL_STREAM for gcc/libstdc++
Not sure if MSVC would accept also the simpler thing, but anyway, the dynamic_cast works for it, too. Change-Id: I2dfa1e70b75bc17d38b5e95be0a0f1dd66767bf1
This commit is contained in:
parent
00f13ed9dd
commit
b2a50c7007
1 changed files with 5 additions and 0 deletions
|
@ -157,8 +157,13 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) {
|
|||
|
||||
@since LibreOffice 3.5
|
||||
*/
|
||||
#ifdef _LIBCPP_VERSION
|
||||
#define SAL_STREAM(stream) \
|
||||
(::std::ostringstream() << stream).str()
|
||||
#else
|
||||
#define SAL_STREAM(stream) \
|
||||
(dynamic_cast< ::std::ostringstream & >(::std::ostringstream() << stream).str())
|
||||
#endif
|
||||
|
||||
/**
|
||||
@page sal_log Basic logging functionality.
|
||||
|
|
Loading…
Reference in a new issue