Details

    Description

      https://en.cppreference.com/w/cpp/container/span

      This should be used instead of a such arguments T *ptr, size_t size, const std::vector<T> &v.

      Especially pointer and size pair is harmful: easy to use incorrect, hard to read the code.

      Class is non-owning! It's just a reference to something.

      Do not use it for strings! Another things exists for strings: https://en.cppreference.com/w/cpp/string/basic_string_view

      Suggestion to use are here https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Eugene Kosov (Inactive) made transition -
          Open In Progress
          6h 14m 1
          Eugene Kosov (Inactive) made transition -
          In Progress In Review
          6s 1
          Marko Mäkelä made transition -
          In Review Stalled
          3d 23h 21m 1
          Eugene Kosov (Inactive) made transition -
          Stalled Closed
          13d 3h 29m 1

          People

            kevg Eugene Kosov (Inactive)
            kevg Eugene Kosov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.