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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.14
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Platforms 2016-09-19

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: