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

Stream builder error for invalid context is unfriendly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Platform D (12/11/15)

      Description

      If you build an incomplete document with the stream builder, and you try to use it as a view, the error you get is unfriendly:

      auto builder = document{} << "key" << "value" << "key";
      auto view = builder.view();
       
      > "not viewable"
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: