simonlynen/yaml-cpp

'max' : is not a member of 'std' error in compiling ostream_wrapper

Closed this issue · 1 comments

What steps will reproduce the problem?
1. Tried to build ostream_wrapper in VS 2013

What is the expected output? What do you see instead?
got an error: 'max' : is not a member of 'std' 

What version of the product are you using? On what operating system?
yaml-cpp-0.5.1 on Windows 7, VS 2013

Please provide any additional information below.

problem is solved by adding #include <algorithm> to ostream_wrapper.cpp

Original issue reported on code.google.com by tcza...@gmail.com on 5 Feb 2015 at 8:21

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

  • Changed state: Duplicate