Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61837

Convert `spec_type` from `enum` to `enum class`

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • eventing
    • 0

    Description

      To improve the type-safety of our code and make it less error-prone, we should convert spec_type (located inside struct MutateInSpecs) from an enum to an enum class.

      References:

      1. https://agrawalsuneet.github.io/blogs/enum-vs-enum-class-in-c++/
      2. https://stackoverflow.com/questions/18335861/why-is-enum-class-considered-safer-to-use-than-plain-enum

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hiren.bavaskar Hiren Bavaskar
            rishit.chaudhary Rishit Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty