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

bsoncxx::oid oid(const string::view_or_value &str) mismatching git repo

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.0, 3.0.1
    • Component/s: API, BSON
    • Labels:
      None

      When I am trying to access this constructor, my compiler says undefined reference to this constructor.

      I checked the source code in both GIT and my local repo, it is string_view for this constructor. However, after installing the cxx driver (both 3.0.0 and 3.0.1), the file /usr/local/include/bsoncxx/v_noabi/bsoncxx/oid.hpp does not have "oid::oid(const bsoncxx::stdx::string_view& str)" but it has "oid (const string::view_or_value &str)".

      "oid::oid(const char* bytes, std::size_t len)" is working for me and I can use it as a work around.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            xinyunzhong@gmail.com Joe Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: