Don't call string_view::to_string

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.4.0
    • Affects Version/s: 3.3.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MNMLSTC defines string_view::to_string but that is not part of STL. So client code that may work when using MNMLSTC may not compile otherwise. Example:

      bsoncxx::stdx::string_view view("test");
      std::string copy = view.to_string();
      

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: