Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2221/include
Modified Files:
pointers.h
Log Message:
added MakeRefCounter
Index: pointers.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/pointers.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- pointers.h 11 Jul 2004 13:03:55 -0000 1.10
+++ pointers.h 30 Jun 2005 23:29:34 -0000 1.11
@@ -198,4 +198,13 @@
};
+/**
+ Convenience function to create a ref counter from raw pointer.
+ */
+template <class T>
+inline RefCounter<T> MakeRefCounter(T *p)
+{
+ return RefCounter<T>(p);
+}
+
/**
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates