Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2460

BSON_STATIC_ASSERT() definition is broken

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.2
    • Affects Version/s: 1.9.1
    • Component/s: libbson
    • None

      1.9.1 defines BSON_STATIC_ASSERT() like this:

      #define BSON_STATIC_ASSERT(s) BSON_STATIC_ASSERT_ (s, __LINE__, assert)
      

      But BSON_STATIC_ASSERT_() macro takes only two arguments:

      #define BSON_STATIC_ASSERT_(s, l)                             \
         typedef char BSON_STATIC_ASSERT_JOIN (static_assert_test_, \
                                               __LINE__)[(s) ? 1 : -1]
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            ppisar Petr Pisar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: