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

Provide more user-friendly constructor or factory function for builder::core

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Not planned
    • Component/s: API, BSON
    • Labels:
      None

      Description

      The builder::core constructor currently takes a required boolean parameter. To improve readability of code which constructs builder::core objects, we should deprecate the existing constructor and either:

      • Provide a new constructor which takes an enumerated type parameter.
      • Provide static factory methods "builder::core::make_document()" and "builder::core::make_document()".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rassi J Rassi
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: