-
Thanks! Your patch has been tested and implemented for both SmartPtr and StrongPtr.
2009-11-10 19:33:18 UTC by rich_sposato
-
Patch provided by Aleksandr Vinokurov was tested and accpeted. I made only a few minor changes to the patch for SmartPtr. StrongPtr required more extensive changes to both StrongPtr class and each ownership policy class.
I made a few tests of dynamic-casting with both StrongPtr and SmartPtr.
Thank You Aleksandr Vinokurov!
Fixed in revisions 1052 and 1053.
2009-11-10 19:31:45 UTC by rich_sposato
-
rich_sposato committed revision 1053 to the Loki SVN repository, changing 2 files.
2009-11-10 19:27:20 UTC by rich_sposato
-
rich_sposato committed revision 1052 to the Loki SVN repository, changing 3 files.
2009-11-10 19:22:16 UTC by rich_sposato
-
Discussion here: https://sourceforge.net/projects/loki-lib/forums/forum/93010/topic/3450443.
2009-11-06 10:07:42 UTC by xvyg
-
Hello,
I understand that the topic is rather old, but still if somebody found it, he may pass to [a patch discussion for the ability to dynamic cast a SmartPtrs][1].
[1]: https://sourceforge.net/tracker/?func=detail&aid=2893162&group_id=29557&atid=396646.
2009-11-06 10:06:53 UTC by xvyg
-
I've added this ability as a patch to [r1029 of SmatrPtr.h][1], please see [the patch and an example][2]. May be it will be helpfull not only for myself :)
Best wishes!
[1]: http://loki-lib.svn.sourceforge.net/viewvc/loki-lib/trunk/include/loki/SmartPtr.h?revision=1029&view=markup
[2]: https://sourceforge.net/tracker/?func=detail&aid=2893162&group_id=29557&atid=396646.
2009-11-06 10:02:03 UTC by xvyg
-
Fellows, please consider this patch for SmartPtr.h r1029 which allows dynamic casts of the SmartPtr.
2009-11-06 09:54:25 UTC by xvyg
-
Hellow, does anybody uses a dynamic casting with **SmartPtr**s?.
2009-11-05 15:08:52 UTC by xvyg
-
Hello guys,
I've tried to use SmartPtr with ClassLevelLockable and default mutex policy. First I've added this:
---------------------
#else
template
CRITICAL_SECTION ClassLevelLockable::atomic_mutex_;
---------------------
in
---------------------
#ifdef LOKI_PTHREAD_H
template ...
2009-11-05 15:02:34 UTC by xvyg