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

Investigate if OptimizerEstimate types can be declared constexpr

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization

      We have many estimate constants defined in code which can't can marked as constexpr because their constructor invokes assertValid which invokes tassert which is not allowed in constexpr context. Maybe we could have a constexpr constructor which uses static_assert or similar to verify the estimate is valid rather than tassert.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: