2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: About the reference counting in GDD smart pointer |
From: | Andrew Johnson <[email protected]> |
To: | Jeff Hill <[email protected]> |
Cc: | [email protected], Core-Talk <[email protected]> |
Date: | Fri, 28 Aug 2009 12:56:18 -0500 |
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