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

Don't call string_view::to_string

    XMLWordPrintable

    Details

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

      Description

      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();
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: