Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2520

Rule S5964: "std::initializer_list" constructor should not overlap with other constructors

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13
    • Component/s: C++, Rules
    • Labels:
      None

      Description

      Impementation details:

      • There should be differentiation between std::intializer_list<TypeTemplate> and std::intializer_list<NonTypeTemplate>.
        std::intializer_list<NonTypeTemplate> overlaps with constructors taking type that NonTypeTemplate can convert to. fore more details examine the in the RSPEC.
      • We don't care about instantiated constructor

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arseniy.zaostrovnykh Arseniy Zaostrovnykh
              Reporter:
              abbas.sabra Abbas Sabra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: