certik / yaml-cpp

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

VC12 Compiler support (ships with Visual Studio 2013) #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ostream_wrapper.cpp source file does not compile with VC12 because 
std::max() is used without including the <algorithm> header.

Problem exists in yaml-cpp version 0.5.1 (and earlier versions).

Proposed fix:

Add #include <algorithm> to 'src/ostream_wrapper.cpp'.

Original issue reported on code.google.com by judson.w...@gmail.com on 16 Dec 2013 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 16 Dec 2013 at 5:12

GoogleCodeExporter commented 9 years ago
I ran into this issue too and fixed it by including <algorithm>. I confirm that 
the proposed fix solves the problem.

Original comment by kccon...@gmail.com on 3 Mar 2014 at 11:30

GoogleCodeExporter commented 9 years ago

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