[SERVER-11778] yaml-cpp doesn't compile on VS2013 Created: 19/Nov/13  Updated: 11/Jul/16  Resolved: 19/Nov/13

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

src\third_party\yaml-cpp-0.5.1\src\ostream_wrapper.cpp(24) : error C2039: 'max' : is not a member of 'std'                        
src\third_party\yaml-cpp-0.5.1\src\ostream_wrapper.cpp(24) : error C3861: 'max': identifier not found                             
src\third_party\yaml-cpp-0.5.1\src\ostream_wrapper.cpp(37) : error C2039: 'max' : is not a member of 'std'                        
src\third_party\yaml-cpp-0.5.1\src\ostream_wrapper.cpp(37) : error C3861: 'max': identifier not found  



 Comments   
Comment by Githook User [ 19/Nov/13 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-11778 add proper header for std::max
Branch: master
https://github.com/mongodb/mongo/commit/91809b1861893ee2d3bd2ceca8d2ca6dd05f9000

Comment by Eric Milkie [ 19/Nov/13 ]

I fixed it locally by adding the proper header to that source file (<algorithm>). It compiles cleanly after I made that change.

Generated at Thu Feb 08 03:26:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.