浏览代码

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

Former-commit-id: 0c028b8fb9bae7beb6a71b5f42f57b9c97b41919
Alec Jacobson 10 年之前
父节点
当前提交
65d1dad989
共有 2 个文件被更改,包括 2 次插入2 次删除
  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