mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bannier (JIRA)" <>
Subject [jira] [Created] (MESOS-6603) Introduce non-owning wrapper for raw ptrs
Date Fri, 18 Nov 2016 03:44:58 GMT
Benjamin Bannier created MESOS-6603:

             Summary: Introduce non-owning wrapper for raw ptrs
                 Key: MESOS-6603
             Project: Mesos
          Issue Type: Wish
          Components: stout
            Reporter: Benjamin Bannier

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

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.

This message was sent by Atlassian JIRA

View raw message