GetKMIPRequestParameters' constructor should be explicit

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Security 2021-08-09
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In C++, constructors which accept a single argument can be automatically used to perform implicit type conversions between the type of the argument and the type class itself. This is frequently undesirable, so unless there is a compelling reason to do so, our codebase requires that constructors with a single argument be marked as "explicit".

       

      In kmip_request.h, GetKMIPRequestParameters is defined to be constructable from a std::vector. We should ensure this constructor is marked explicit.

            Assignee:
            Erwin Pe
            Reporter:
            Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: