diff options
Diffstat (limited to 'science/liggghts/files/patch-utils.h')
| -rw-r--r-- | science/liggghts/files/patch-utils.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/science/liggghts/files/patch-utils.h b/science/liggghts/files/patch-utils.h new file mode 100644 index 000000000000..31adc450fe7e --- /dev/null +++ b/science/liggghts/files/patch-utils.h @@ -0,0 +1,15 @@ +--- utils.h.orig 2018-11-02 06:39:45 UTC ++++ utils.h +@@ -67,7 +67,11 @@ namespace Utils { + + inline std::string int_to_string(int a) + { +- return static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << a ) ).str(); ++ // see https://www.cfdem.com/forums/error-non-const-lvalue-reference-type-basicostringstream-cannot-bind-temporary-type ++ // return static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << a ) ).str(); ++ std::ostringstream ss; ++ ss << std::dec << a; ++ return ss.str(); + } + + inline std::string double_to_string(double dbl) |
