Clang 20+ has warning -Wdeprecated-literal-operator for json.hpp

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • 4.2.0, 4.1.2
    • Affects Version/s: 4.1.1
    • Component/s: BSON
    • None
    • None
    • C Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Anyone running warnings as errors will see an error for -Wdeprecated-literal-operator in v_noabi/bsoncxx/json.hpp for the 'operator"" _bson' line 85. syntax needs to change to 'operator""_bson'

      """
      include/bsoncxx/v_noabi/bsoncxx/json.hpp:85:54: error: identifier '_bson' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]

      """

              Assignee:
              Ezra Chung
              Reporter:
              David Satagaj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: