Commit graph

65 commits

Author SHA1 Message Date
rich_sposato
d2ca522cca Added text of MIT License.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1115 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-23 00:46:21 +00:00
rich_sposato
199f8bcade Added comment about policy incompatibility.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1114 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-21 23:24:54 +00:00
rich_sposato
80a07d19e8 Added array handling to SmartPtr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1109 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 22:33:34 +00:00
rich_sposato
db151ad7b9 Fixed bug 2080889 by adding overload of const Clone function.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1101 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-17 02:19:01 +00:00
rich_sposato
3af86d72a1 Added call to OnDereference to constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1100 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-13 00:50:05 +00:00
rich_sposato
2e1bf19bdd Fixed bug 3224518 by adding calls to OnDereference.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1094 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-07 22:46:37 +00:00
rich_sposato
75ce7d41ba Used initialization instead of assignment within constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1078 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-16 17:32:24 +00:00
rich_sposato
6bc2851497 Loki header files now all have consistent include statement style.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1069 7ec92016-0320-0410-acc4-a06ded1c099a
2010-04-19 03:09:59 +00:00
rich_sposato
9e3a736929 Implemented patch 2893162 to allow dynamic-casting with SmartPtr and StrongPtr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1052 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-10 19:22:16 +00:00
rich_sposato
d723342f30 Changed functions in all policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1029 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-07 00:41:02 +00:00
rich_sposato
6281fa4bef Changed functions in ownership policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1028 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-07 00:28:23 +00:00
rich_sposato
1663a0b30b Fixed bug 2803535 by adding const qualifier.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1021 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 20:43:11 +00:00
rich_sposato
c1f17ce2f0 Fixed bug 2831440 by making constructors explicit.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1019 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 20:27:34 +00:00
rich_sposato
a1d74d7725 Fixed bug 2747377 by changing order of operands.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1013 7ec92016-0320-0410-acc4-a06ded1c099a
2009-04-11 06:01:06 +00:00
rich_sposato
464f643e19 Fixed bug 2082935 using overloaded version of AtomicDecrement.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@903 7ec92016-0320-0410-acc4-a06ded1c099a
2008-11-10 05:55:12 +00:00
syntheticpp
7db6328cb2 add solaris patch 1839286
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@869 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-15 20:28:06 +00:00
lfittl
214635bfc1 - Fixed build failures with gcc 4.3 pre-release
(http://bugs.debian.org/413432)


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@823 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-08 10:48:40 +00:00
rich_sposato
5767923ea5 Added documentation comment describing thread race condition.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@821 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-01 16:22:02 +00:00
rich_sposato
97e1fd6b59 Moved Locker class out of LockedStorage to accomodate GCC compiler.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@791 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-15 01:36:29 +00:00
rich_sposato
6eabeea489 Added documentation comments for LockedStorage policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@790 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-29 19:16:39 +00:00
rich_sposato
eb92853ac1 Added LockedStorage policy for feature 1441024.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@783 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-21 01:34:45 +00:00
syntheticpp
37f2743043 add empty definition to NeverMatched, the AIX compiler needs it, Thanks to Dieter Rosch
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@766 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-20 10:12:15 +00:00
syntheticpp
ea94f38878 subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@747 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:48:40 +00:00
syntheticpp
24cf84a05f there is no $ with subversion
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@742 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:30:16 +00:00
syntheticpp
65f4f22526 use svn:keywords Id only
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@741 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 18:48:47 +00:00
syntheticpp
be4cbd4c33 add svn:keywords Author Date HeadURL
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@740 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 18:32:42 +00:00
syntheticpp
383fab624c change line ending
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@735 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 10:39:29 +00:00
syntheticpp
e337788cc5 change line ending
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@734 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 10:36:45 +00:00
syntheticpp
812423e188 workaround for broken msvc/gcc: template friends with template template parameters
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@732 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 10:06:58 +00:00
syntheticpp
56c73cd3bc fix wrong friend declaration
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@731 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 09:14:27 +00:00
syntheticpp
d19b1df7f4 remove C&P error
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@730 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-16 16:34:48 +00:00
syntheticpp
0ac52235b4 fix gcc>4.1 handling of injected friends
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@709 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-11 10:44:21 +00:00
syntheticpp
81c7b0d3db also compile when std::string is not implicit included/typedefed by other headers; the SUN compiler needs the explicit include of <string>
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@694 7ec92016-0320-0410-acc4-a06ded1c099a
2006-07-07 09:50:30 +00:00
syntheticpp
30f4e933c1 replace tabs with 4 spaces
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@680 7ec92016-0320-0410-acc4-a06ded1c099a
2006-06-19 12:39:09 +00:00
syntheticpp
0f42475f4a add warning about mt bug
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@660 7ec92016-0320-0410-acc4-a06ded1c099a
2006-05-30 14:30:19 +00:00
syntheticpp
e23c99bf65 undo commit 1.29, reject bug: [ 1459838 ] Loki::COMRefCounted doesn't call AddRef() on assignment
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@646 7ec92016-0320-0410-acc4-a06ded1c099a
2006-05-17 16:04:32 +00:00
rich_sposato
0201647cdc Fixed bug 1459838 using fix made by Thomas Albrecht. (Thanks!)
Also added a constructor for NoCheck policy.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@622 7ec92016-0320-0410-acc4-a06ded1c099a
2006-04-05 22:41:43 +00:00
rich_sposato
f107dafa96 Added check for NULL pointer in HeapStorage policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@618 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-27 18:38:30 +00:00
rich_sposato
5157e66c72 Added HeapStorage policy as mentioned in Feature Request 1441024.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@617 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-27 18:34:36 +00:00
rich_sposato
47730a3073 Fixed bugs 1452805 and 1451835. Added Merge ability for RefLink policy.
Added more tests for SmartPtr.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@610 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-17 22:52:56 +00:00
syntheticpp
aab36b5ebb patch undefined uintptr_t, thx to Regis Desgroppes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@609 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-17 20:22:14 +00:00
syntheticpp
d72b2ff1b3 replace tabs with 4 spaces in all files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@600 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 17:07:20 +00:00
syntheticpp
867fb85151 undo disabling checking, remove warnings, many thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@574 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 16:55:56 +00:00
syntheticpp
9eb276e401 fix wrong RejectNull implementation, thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@573 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 12:59:59 +00:00
syntheticpp
4fbed79847 add support of loki.dll
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@564 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-27 19:59:20 +00:00
syntheticpp
8139b0efdb add constness policy to doc
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@556 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 13:48:54 +00:00
syntheticpp
d9a835a2d5 add const member function OnDereference to non static RejectNull policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@550 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 13:01:40 +00:00
rich_sposato
9f532a3ea0 Moved a monolithic base class from header file to new source file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@548 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 01:52:17 +00:00
rich_sposato
059eba4ae1 Moved Const-policy structs from SmartPtr.h to ConstPolicy.h.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@535 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-19 22:04:28 +00:00
syntheticpp
1cd7d08d7c rename SmartPtr-ByRef and ScopeGuard-ByRefHolder into RefToValue and move it to loki/RefToValue.h
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@530 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-14 11:54:46 +00:00