rich_sposato
0801173d25
Added tests for SmartPtr::operator[] - and related changes.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1113 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 23:32:29 +00:00
rich_sposato
ca6a94ac97
Back to revision 1109. Accidentally checked in more files than I intended.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1111 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 23:19:14 +00:00
rich_sposato
16094ffe39
A little cleanup. Moved class to SmartPtr.cpp and SmartPtr.h files.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1110 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 22:34:24 +00:00
rich_sposato
419efb2c20
Added comment about delete this.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1108 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 18:38:13 +00:00
rich_sposato
9d55e10a3b
Added ability for StrongPtr to handle arrays.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1107 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 18:36:12 +00:00
rich_sposato
a6e51efab9
Added ability for StrongPtr to handle arrays.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1106 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 17:52:11 +00:00
rich_sposato
a89951c211
Removed #if 0 lines because compiler choked on it.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1103 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-17 02:25:43 +00:00
rich_sposato
0f2b0a91d8
Uncommented test for const DestructiveCopy pointer after fixing bug.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1102 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-17 02:20:19 +00:00
rich_sposato
d84589282e
Added more tests for DestructiveCopy.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1098 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-08 23:51:46 +00:00
rich_sposato
d6ee790dd6
Added tests for DestructiveCopy.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1097 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-08 23:37:26 +00:00
rich_sposato
cd6a4f5864
Added code to support test of bug 3224518.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1096 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-07 22:51:17 +00:00
rich_sposato
9fe5e76c73
Added tests for bug 3224518.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1095 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-07 22:50:38 +00:00
rich_sposato
bff4655397
Changed test program when working on bug 3106378.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1092 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-07 00:06:19 +00:00
rich_sposato
3706b5d249
Added test for exception handling policies.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1083 7ec92016-0320-0410-acc4-a06ded1c099a
2011-06-21 01:11:50 +00:00
rich_sposato
27f38492bd
Added tests for new single-owner policy classes for StrongPtr.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1081 7ec92016-0320-0410-acc4-a06ded1c099a
2010-10-30 03:12:56 +00:00
syntheticpp
1a2e0328a0
gcc fixes, thanks to Roland Pabel
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1067 7ec92016-0320-0410-acc4-a06ded1c099a
2009-12-22 11:36:36 +00:00
syntheticpp
f4e3f63a8a
update studio files
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1061 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-21 10:44:43 +00:00
syntheticpp
059018191f
use foreach in register code, add foreach tests
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1060 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-21 10:44:08 +00:00
rich_sposato
0bb48173c9
Added ThreadLocal test project to Loki.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1055 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-20 06:33:15 +00:00
rich_sposato
6eb3a5a216
Added tests for dynamic-casting with SmartPtr and StrongPtr.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1053 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-10 19:27:20 +00:00
rich_sposato
d54996dbba
Added thread-local declaration. Replace sleep with usleep.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1051 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 22:45:51 +00:00
rich_sposato
5f5f3b7766
Moved thread_local declaration to separate header file.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1050 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 22:40:13 +00:00
rich_sposato
399234cb43
Changed parameter type for main.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1049 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 22:38:37 +00:00
rich_sposato
c74e851a38
Renamed Unlocker to remove compiler warning. Changed function calls for sleeping.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1044 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-16 06:00:40 +00:00
rich_sposato
65949024b3
Renamed Unlocker to remove compiler warning.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1043 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-16 05:54:12 +00:00
rich_sposato
7d52fcdeb9
Changed some project settings.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1042 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-11 05:35:15 +00:00
rich_sposato
6cc7597d5c
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1039 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:56:26 +00:00
rich_sposato
47bb08d2de
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1038 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:54:57 +00:00
rich_sposato
46547199cf
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1037 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:53:07 +00:00
rich_sposato
9d86b1d4aa
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1036 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:51:27 +00:00
rich_sposato
840a40dce1
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1035 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:49:40 +00:00
rich_sposato
3bdf75ff9b
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1034 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:47:49 +00:00
rich_sposato
e383589380
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1033 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:45:58 +00:00
rich_sposato
b465c6ad49
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1032 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:43:02 +00:00
rich_sposato
37a4de176f
Changed main declaration to remove GCC warning.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1031 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:11:31 +00:00
rich_sposato
6e978472dd
Added include statements and changed main() declaration.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1030 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:09:23 +00:00
rich_sposato
bd84a726a9
Added test for pointer to const object.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1025 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 23:49:05 +00:00
rich_sposato
cbf7550f08
Added year to copyright notice.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1023 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 21:10:43 +00:00
rich_sposato
9b083bd028
Added tests which compare host to memento.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1018 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 19:42:09 +00:00
rich_sposato
2817d41081
Added tests for comparison operators for SmartPtr.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1014 7ec92016-0320-0410-acc4-a06ded1c099a
2009-04-11 06:02:59 +00:00
rich_sposato
e35ba7770e
Added structs to declare typedefs for various exception policies.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1012 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-31 21:56:08 +00:00
jfbastien
433534f136
Bug 2690414: flex_string missing swap implementation
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1011 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-17 18:21:12 +00:00
jfbastien
b1e0c16582
Copy/paste mistake.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1010 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 15:17:59 +00:00
jfbastien
b170379f32
Bug 2686155: flex_string is missing input_iterator methods
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1009 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 13:54:51 +00:00
jfbastien
8642f606d9
Simplify Num2String.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1003 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 19:55:59 +00:00
jfbastien
a27150df64
Refactor some more, and add a bunch of tests. These new tests led me to find bug #2679853 .
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1002 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 18:36:42 +00:00
jfbastien
2d56e06cff
Add a small string optimization test with a buffer of 126.
...
Cache size() outside the loop for RandomString.
Modify Num2String so that npos is properly taken into account.
Add Tristate2String.
Modify seedForThisIteration so that its value is count + rand() instead of just rand(): using just rand meant that a lot of the initial seeds repeated because the pseudo-randomness of rand isn't good. Adding count should somewhat reduce the repetitions.
I'd consider using another random number generator, rand() is slow and has a bad distribution.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@999 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 21:09:20 +00:00
jfbastien
8d792783e0
Use MaxString<String>::value instead of 1000.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@998 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 16:13:57 +00:00
jfbastien
8d19f398f4
There were test failures in release (MSVC 9 with Multi-threaded DLL runtime library) because random and RandomString were called directly as arguments to functions. When this happened more than once in the same function there would sometimes be different results because the order of evaluation of function arguments isn't guaranteed.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@996 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-04 16:04:41 +00:00
jfbastien
dc9c2b0ed9
Refactor some more. Add tests.
...
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@994 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-03 22:14:49 +00:00