You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (JIRA)" <ji...@apache.org> on 2016/11/18 03:44:58 UTC

[jira] [Created] (MESOS-6603) Introduce non-owning wrapper for raw ptrs

Benjamin Bannier created MESOS-6603:
---------------------------------------

             Summary: Introduce non-owning wrapper for raw ptrs
                 Key: MESOS-6603
                 URL: https://issues.apache.org/jira/browse/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 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)