Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38572

Allow c++ expressions in default/implicit/validator IDL attributes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.7
    • None
    • None
    • None
    • Fully Compatible
    • Security 2018-12-17

    Description

      Exapand the definitions of default, implicit, and validator.{gt,lt,gte,lte} to accept either a literal scalar (as they do now), or a dictionary containing "expr: string" and optionally "is_constexpr: bool"

      If a literal scalar, non-numerics will be encapsulated as needed (current behavior).

      if a dictionary containing 'expr', that expression will be used without encapsulation.  is_constexpr (default true) will also enforce that the expression provided must be evaluable as a constexpr, failing to do so will result in a compile error.

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: