[ 
https://issues.apache.org/jira/browse/MESOS-6603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rukletsov updated MESOS-6603:
---------------------------------------
    Summary: Introduce non-owning wrapper for raw ptrs.  (was: Introduce 
non-owning wrapper for raw ptrs)

> 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)

Reply via email to