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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.0.0, 3.0.1
    • Component/s: API, BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Joe Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: