kastnermario / yaml-cpp

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

Cannot compile with Visual C++ 2013 #276

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cmake -G "Visual Studio 12 2013"
2. Try to compile it

What is the expected output? What do you see instead?
Expected: Build successful
Actual: Got this error.
C:\yaml-cpp-0.5.1\src\ostream_wrapper.cpp(24): error C2039: 'max' : is not a 
member of 'std'

What version of the product are you using? On what operating system?
Windows 7 32bit. Visual Studio 2013

Please provide any additional information below.
If I add #include <algorithm> in ostream_wrapper.cpp, build succeeded.

Original issue reported on code.google.com by shin1.katayama on 18 Feb 2015 at 11:15

GoogleCodeExporter commented 8 years ago

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