diff options
author | equal-l2 <eng.equall2@gmail.com> | 2017-12-25 19:34:34 +0900 |
---|---|---|
committer | John Hodge (Mutabah) <acessdev@gmail.com> | 2017-12-25 19:35:27 +0800 |
commit | 601f672c3ce518b5774014f36daf3b52d97dc725 (patch) | |
tree | 738bff6add0e3a3ec057fe0519b2ec87571aa1e5 | |
parent | 40d9ac73f5a7312cdd3c7c20a671561d230a02d7 (diff) | |
download | mrust-601f672c3ce518b5774014f36daf3b52d97dc725.tar.gz |
Fix FMT
-rw-r--r-- | src/common.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp index dec40191..3c99e57b 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -15,7 +15,7 @@ #define __attribute__(x) /* no-op */ #endif -#define FMT(ss) (dynamic_cast< ::std::stringstream&>(::std::stringstream() << ss).str()) +#define FMT(ss) (static_cast<::std::ostringstream&&>(::std::ostringstream() << ss).str()) // XXX: Evil hack - Define 'mv$' to be ::std::move #define mv$(x) ::std::move(x) #define box$(...) ::make_unique_ptr(::std::move(__VA_ARGS__)) |