Browse Source

Merge branch 'master' of github.com:libigl/libigl

Former-commit-id: 0c028b8fb9bae7beb6a71b5f42f57b9c97b41919
Alec Jacobson 10 years ago
parent
commit
65d1dad989
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/igl/C_STR.h
  2. 1 1
      include/igl/STR.h

+ 1 - 1
include/igl/C_STR.h

@@ -14,5 +14,5 @@
 //   func(C_STR("foo"<<1<<"bar"));
 #include <sstream>
 #include <string>
-#define C_STR(X) static_cast<std::ostringstream&>(std::ostringstream().seekp(0) << X).str().c_str()
+#define C_STR(X) static_cast<std::ostringstream&>(std::ostringstream().flush() << X).str().c_str()
 #endif

+ 1 - 1
include/igl/STR.h

@@ -14,5 +14,5 @@
 //   void func(std::string c);
 // Then you can write:
 //   func(STR("foo"<<1<<"bar"));
-#define STR(X) static_cast<std::ostringstream&>(std::ostringstream().seekp(0) << X).str()
+#define STR(X) static_cast<std::ostringstream&>(std::ostringstream().flush() << X).str()
 #endif