Deprecate mongoc_init_ctor/dtor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Mira Carey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: