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

Fix mongodb compilation with libc++

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v7.0
    • Security 2023-05-15

      MongoDB now compiles with C++ 20 but some of the third-party code uses removed C++ features.

      src/third_party/asio-master/asio/include/asio/detail/type_traits.hpp is using std::result_of which was removed in C++20. This can be worked around by either ASIO_HAS_STD_INVOKE_RESULT to make ASIO define it or _LIBCPP_ENABLE_CXX20_REMOVED_TYPE_TRAITS to undo the removal. The former is likely better since it has a more narrow affect in the code base.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: