[MOAB-dev] commit/MOAB: rajeeja: Without this typecasting, MOAB wouldn't compile on a MacOSX, error: invalid operands to binary expression (std::ostream (aka basic_ostream<char>) and const char [8])

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Oct 24 17:58:55 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/f281b57b829e/
Changeset:   f281b57b829e
Branch:      master
User:        rajeeja
Date:        2013-10-25 00:58:46
Summary:     Without this typecasting, MOAB wouldn't compile on a MacOSX, error: invalid operands to binary expression (std::ostream (aka basic_ostream<char>) and const char [8])

Affected #:  1 file

diff --git a/src/moab/BoundBox.hpp b/src/moab/BoundBox.hpp
index 9400944..5c51341 100644
--- a/src/moab/BoundBox.hpp
+++ b/src/moab/BoundBox.hpp
@@ -128,9 +128,9 @@ namespace moab {
     }
 
     inline std::ostream &operator<<(std::ostream& out, const BoundBox &box) {
-      out << "Min: ";
+      out << (std::string) "Min: ";
       out << box.bMin;
-      out << ", Max: ";
+      out << (std::string) ", Max: ";
       out << box.bMax;
       return out;
     }

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list