Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6603

Introduce non-owning wrapper for raw ptrs.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • stout

    Description

      A number of classes have non-owning raw ptrs, typically as some member [const] T*. Raw C ptrs are not initialized on declaration which makes it very convenient to introduce uninitialized variables.

      We should consider introducing a very thin, non-owning wrapper around raw ptrs which ensures the wrapper raw ptr is properly initialized to nullptr. It should be possible to implement such a wrapper without adding new runtime overhead to correct usage of raw ptrs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: