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

shared_buffer.h uses placement new without including <new>

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: legacy-1.0.0
    • Component/s: Implementation
    • Labels:
      None

      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'

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

              Created:
              Updated:
              Resolved: