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

Don't call string_view::to_string

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.4.0
    • 3.3.1
    • None
    • 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

            jesse@mongodb.com A. Jesse Jiryu Davis
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: