On Wed, Jul 25, 2012 at 09:17:03AM +0200, Alexander Chemeris wrote:
Oh, this looks like "hack your C to be C++", isn't it better to just
use C++ then? It has a very clean semantics for this which is
supported by _all_ compilers.
Hi,
for me the PCU code is C compiled with a C++ compiler. I would more
think we will move to using to use a C compiler than using more of
C++ features. But yes the 'cleanup' attribute can be easily handled
by a "template TallocPtr<T>" class.
holger
--
- Holger Freyther <hfreyther(a)sysmocom.de>
http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Schivelbeiner Str. 5
* 10439 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte