[shifted_ptr] Now supports <void>, multithread roots & preprocessor code

Greetings: Ok, this a nice feature that just got added to the pointer. I just added support for "void" pointers and works perfectly. We can see the object being deleted correctly after the shifted_ptr<void> is destructed. Furthermore a very nice property shifted_ptr_base has is that it can be casted to a regular pointer and back again to a shifted_ptr_base and the pointee will still be correctly deallocated. I never saw any production code using perfect C++ coding and sometimes it happens we rely on "working undefined behaviors". Multithreaded support has been added but unfortunately I didn't see any function returning the current thread id. Was this disregarded? Finally I am using cleaner preprocessor coding for variadic function templates: http://www.boost-consulting.com/vault/index.php?action=downloadfile&filename=shifted_ptr.zip&directory=Memory& Thanks, -Phil

on Fri Mar 28 2008, "Phil Bouchard" <philippe-AT-fornux.com> wrote:
Ok, this a nice feature that just got added to the pointer. I just added support for "void" pointers and works perfectly. We can see the object being deleted correctly after the shifted_ptr<void> is destructed.
Furthermore a very nice property shifted_ptr_base has is that it can be casted to a regular pointer and back again to a shifted_ptr_base and the pointee will still be correctly deallocated. I never saw any production code using perfect C++ coding and sometimes it happens we rely on "working undefined behaviors".
Multithreaded support has been added but unfortunately I didn't see any function returning the current thread id. Was this disregarded?
Finally I am using cleaner preprocessor coding for variadic function templates: http://www.boost-consulting.com/vault/index.php?action=downloadfile&filename=shifted_ptr.zip&directory=Memory&
Is there a documentation page somewhere? -- Dave Abrahams Boost Consulting http://boost-consulting.com

"Steven Watanabe" <watanabesj@gmail.com> wrote in message news:47ED3D7D.6060409@providere-consulting.com... [...]
There seems to be "documentation" in the zip archive, but it's completely opaque.
Indeed this is an API reference documentation but there is still one minor detail I need to alter before writing down an official document. I should have an early draft early next week. -Phil

"Phil Bouchard" <philippe@fornux.com> wrote in message news:fskfnj$tni$1@ger.gmane.org... [...]
Indeed this is an API reference documentation but there is still one minor detail I need to alter before writing down an official document. I should have an early draft early next week.
I think this will take me more time than expected. -Phil

AMDG
Multithreaded support has been added but unfortunately I didn't see any function returning the current thread id. Was this disregarded?
It kind of sounds like you want thread specific storage. It would be nice if I could compile shifted_ptr on msvc... In Christ, Steven Watanabe

AMDG Phil Bouchard wrote:
Multithreaded support has been added but unfortunately I didn't see any function returning the current thread id. Was this disregarded?
boost::this_thread::get_id() In Christ, Steven Watanabe
participants (3)
-
David Abrahams
-
Phil Bouchard
-
Steven Watanabe