Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-576

shared_buffer.h uses placement new without including <new>

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • legacy-1.0.0
    • Implementation
    • None

    Description

      mongo/util/shared_buffer.h uses a placement new on line 60. It does not include <new> prior to that. Nor does it use std:: as a prefix.

      When including "mongo/client/dbclient.h", depending on other includes in the cpp, this results in the occasional compile error :

      %MONGO_INCLUDE%\mongo/util/shared_buffer.h(60): error C2061: syntax error : identifier 'holderPrefixedData'

      Attachments

        Activity

          People

            Unassigned Unassigned
            sxhickman Steve Hickman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: