diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-12-26 10:29:22 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-12-26 10:29:22 +0800 |
commit | a8bd3db91c77093e4bfdd62cf45d9313ac26b897 (patch) | |
tree | 77d3d22eaf22483d2016b88c84ab01960d7a6be4 | |
parent | 9e3ab4278fea40b9282c3c6e166020763fd7028d (diff) | |
parent | 601f672c3ce518b5774014f36daf3b52d97dc725 (diff) | |
download | mrust-a8bd3db91c77093e4bfdd62cf45d9313ac26b897.tar.gz |
Merge branch 'master' of https://github.com/thepowersgang/mrustc
-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__)) |