Hi Jeff,
On Friday 28 August 2009 10:55:04 Jeff Hill wrote:
>
> Some options
> ------------
Why not add a gdd factory method to the smartGDDPointer API, so the user never
needs to do a 'new gdd' themselves?
smartGDDPointer pDD1; // Empty
pDD1.newGdd(); // Create one
> // the smart pointer maintains the ref count
> smartGDDPointer pDD2 = pDD1;
> smartGDDPointer pDD3 = pDD2;
> pDD2 = pDD3;
- Andrew
--
The best FOSS code is written to be read by other humans -- Harold Welte
- Replies:
- RE: About the reference counting in GDD smart pointer Jeff Hill
- References:
- About the reference counting in GDD smart pointer Alex . Chen
- RE: About the reference counting in GDD smart pointer Jeff Hill
- Navigate by Date:
- Prev:
RE: Status PV Gateway fixes/changes from Jeff Hill Jeff Hill
- Next:
RE: About the reference counting in GDD smart pointer Alex . Chen
- Index:
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: About the reference counting in GDD smart pointer Jeff Hill
- Next:
RE: About the reference counting in GDD smart pointer Jeff Hill
- Index:
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|