Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98551

Check if we can get rid of MONGO_COMPILER_HAS_ATTRIBUTE

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • SP Prioritized List

      __has_cpp_attribute() is part of c++20 so it should be available on all of our compilers now. If so, we should delete the macro and replace all usages with the underlying builtin. We should do a patch build an #error in the #else branch of its definition first to ensure it really is available on all of our compilers.

            Assignee:
            richy.gerard@mongodb.com Richy Gerard
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: