summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-12-26 10:29:22 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-12-26 10:29:22 +0800
commita8bd3db91c77093e4bfdd62cf45d9313ac26b897 (patch)
tree77d3d22eaf22483d2016b88c84ab01960d7a6be4
parent9e3ab4278fea40b9282c3c6e166020763fd7028d (diff)
parent601f672c3ce518b5774014f36daf3b52d97dc725 (diff)
downloadmrust-a8bd3db91c77093e4bfdd62cf45d9313ac26b897.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
-rw-r--r--src/common.hpp2
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__))