-
Type: New Feature
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Implementation
Programs that use mongocxx functionality without first creating a mongocxx::instance object are ill-formed. We should attempt to detect this scenario, fail fast, and provide readable error messages to users, where possible.
One approach to address this is to have the mongocxx::client and mongocxx::pool constructors fail if no instance is configured. This will cover many ill-formed programs, but not all.