majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Fix compilation with VC12 (a.k.a. MSVS 2013) #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<algorithm> is not included indirectly by <iostream> any more so the following 
trivial patch is needed to avoid errors about std::max being undefined:

diff --git a/src/ostream_wrapper.cpp b/src/ostream_wrapper.cpp
index 66cafda..133bc9b 100644
--- a/src/ostream_wrapper.cpp
+++ b/src/ostream_wrapper.cpp
@@ -1,4 +1,5 @@
 #include "yaml-cpp/ostream_wrapper.h"
+#include <algorithm>
 #include <cstring>
 #include <iostream>

Original issue reported on code.google.com by vzeitlin@gmail.com on 23 Dec 2013 at 11:53

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 24 Dec 2013 at 8:37

GoogleCodeExporter commented 9 years ago
Fixed, r70c09c385a39.

Original comment by jbe...@gmail.com on 23 Mar 2014 at 4:22

GoogleCodeExporter commented 9 years ago
Issue 231 has been merged into this issue.

Original comment by jbe...@gmail.com on 24 Mar 2014 at 3:19

GoogleCodeExporter commented 9 years ago
Issue 275 has been merged into this issue.

Original comment by jbe...@gmail.com on 7 Feb 2015 at 5:59

GoogleCodeExporter commented 9 years ago
Issue 276 has been merged into this issue.

Original comment by jbe...@gmail.com on 19 Feb 2015 at 7:17

GoogleCodeExporter commented 9 years ago
Issue 282 has been merged into this issue.

Original comment by jbe...@gmail.com on 26 Feb 2015 at 7:04

GoogleCodeExporter commented 9 years ago
Issue 288 has been merged into this issue.

Original comment by jbe...@gmail.com on 26 Mar 2015 at 1:47