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

#define MONGO_STATIC_ASSERT(cond) static_assert(cond, #cond)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Platforms 2016-09-19

      Currently we need to repeat the condition in the message field which in addition to being redundant, has the risk of discrepancies. If compilers are ever able to generate better error message from 1-arg static_assert, we could convert the macro to take advantage of it.

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: