[SERVER-14671] s2 fails to compile on clang Created: 24/Jul/14  Updated: 26/Jul/14  Resolved: 24/Jul/14

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: 2.7.4

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
Steps To Reproduce:

https://mci.10gen.com/ui/task_log_raw/mongodb_mongo_master_osx_108_cxx11_debug_4f01ffd9cbbb0dcb4ee2f9167ad2337178259ba9_14_07_23_22_52_07_compile_osx_108_cxx11_debug/0?type=T

Participants:

 Description   

After commit 2cbd9f1d77ce6b25e9957d3121fccb521caf848f
we now pull in libc++ functional_hash.h before s2.h in expression_index.cpp. functional_hash.h declares hash as a struct, but s2.h declares a template specialization of "class hash", which conflicts.



 Comments   
Comment by Githook User [ 24/Jul/14 ]

Author:

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

Message: SERVER-14671 change class hash to struct hash, to match system include's definition
Branch: master
https://github.com/mongodb/mongo/commit/f92174540acb6713eacee71877cbc124fc86f296

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