Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-592

Deprecate mongoc_init_ctor/dtor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      We should deprecate the mongoc_init_ctor/dtor attribute constructor/destructor craziness. It's gcc specific (so code that works on *nix will fail on other platforms) and prevents users from setting necessary callbacks before calling init (like the memory interface).

      Hannes added MONGOC_NO_AUTOMATIC_GLOBALS option in 1.3.5.

      In 1.4, shout a warning if automatic initialization and destruction are left turned on.

      Remove automatic init / destruct in 2.0.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: