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

error: chosen constructor is explicit in copy-initialization

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: Build
    • None
    • ALL
    • Platforms 2016-10-31

      Hello,

      mongodb 3.2.10 does not build with the version of clang included with the latest version of Xcode compatible with OS X versions 10.7, 10.8 or 10.9:

      src/mongo/dbtests/index_access_method_test.cpp:42:16: error: chosen constructor is explicit in copy-initialization
          BSONObjSet left = {};
                     ^      ~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:428:14: note: constructor declared here
          explicit set(const value_compare& __comp = value_compare())
                   ^
      src/mongo/dbtests/index_access_method_test.cpp:43:16: error: chosen constructor is explicit in copy-initialization
          BSONObjSet right = {};
                     ^       ~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:428:14: note: constructor declared here
          explicit set(const value_compare& __comp = value_compare())
                   ^
      src/mongo/dbtests/index_access_method_test.cpp:50:16: error: chosen constructor is explicit in copy-initialization
          BSONObjSet left = {};
                     ^      ~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:428:14: note: constructor declared here
          explicit set(const value_compare& __comp = value_compare())
                   ^
      src/mongo/dbtests/index_access_method_test.cpp:59:16: error: chosen constructor is explicit in copy-initialization
          BSONObjSet right = {};
                     ^       ~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:428:14: note: constructor declared here
          explicit set(const value_compare& __comp = value_compare())
                   ^
      

      This problem was reported to MacPorts here: https://trac.macports.org/ticket/52611

      mongodb 3.2.9 did not have this problem.

      mongodb 3.2.10 builds fine on OS X 10.10 and later.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: