Glen Fernandes
2d3cc0db7d
Update documentation and remove unused code.
...
[SVN r81703]
2012-12-04 11:21:24 +00:00
Glen Fernandes
188602581d
Add overloads of make_shared and allocate_shared for arrays for E&& where E is typename boost::detail::array_base<T>::type
...
[SVN r81700]
2012-12-04 06:06:23 +00:00
Glen Fernandes
1adf546ddb
Minor cosmetic change in detail array_deleter
...
[SVN r81685]
2012-12-03 05:56:17 +00:00
Glen Fernandes
5e5ff387fa
For fixed size arrays upon constructor exception thrown destroy correctly.
...
[SVN r81684]
2012-12-03 05:41:34 +00:00
Glen Fernandes
500913db6d
Make specializations of detail array_deleter consistent.
...
[SVN r81681]
2012-12-02 22:05:31 +00:00
Glen Fernandes
cfd4152291
Change make_shared and allocate_shared array form overload for size and inner array initialization list to use const T(&)[N] instead of std::initializer_list<T>.
...
[SVN r81658]
2012-12-01 22:43:57 +00:00
Glen Fernandes
f5adfb0963
Code consistency: Use the same style of #if conditional compilation checks in allocate_shared_array.hpp and make_shared_array.hpp.
...
[SVN r81643]
2012-12-01 05:40:06 +00:00
Glen Fernandes
8597433028
Use BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX instead for certain overloads of make_shared and allocate_shared
...
[SVN r81642]
2012-12-01 05:23:37 +00:00
Glen Fernandes
4da0e2b7fc
Use const T (&)[N] for fixed size arrays instead of std::initializer<T> in overloads of make_shared and allocate_shared for arrays.
...
[SVN r81641]
2012-12-01 04:36:41 +00:00
Glen Fernandes
39ff002d2e
More consistency in type parameters in helper details of allocate_shared and make_shared.
...
[SVN r81610]
2012-11-28 07:32:30 +00:00
Glen Fernandes
fceea2e584
Consistent formatting across overloads of make_shared and allocate_shared (array forms).
...
[SVN r81609]
2012-11-28 06:26:50 +00:00
Glen Fernandes
b17205ded7
Optimization: Add specializations of make_array_helper, allocate_array_helper, and array_deleter for fixed size arrays to avoid storing size.
...
[SVN r81608]
2012-11-28 06:07:45 +00:00
Peter Dimov
d74c09dd5a
Apply patch from #7722 . Refs #7722 .
...
[SVN r81488]
2012-11-22 17:39:27 +00:00
Peter Dimov
97d32745aa
Update shared_ptr casts.
...
[SVN r81463]
2012-11-21 17:43:48 +00:00
Peter Dimov
7835914d83
Borland fixes.
...
[SVN r81437]
2012-11-20 15:22:19 +00:00
Glen Fernandes
ddfcc5f417
Make make_shared_array.hpp and allocate_shared_array.hpp consistent with namespace qualification in rest of smart_ptr.
...
[SVN r81409]
2012-11-18 02:51:06 +00:00
Glen Fernandes
79b229adcd
Cosmetic changes in make_shared_array.hpp and allocate_shared_array.hpp
...
[SVN r81407]
2012-11-17 22:20:32 +00:00
Peter Dimov
94b6487ca1
Replace std::forward with detail::sp_forward.
...
[SVN r81399]
2012-11-17 16:21:41 +00:00
Peter Dimov
cf769b94a7
Apply BOOST_NOEXCEPT patch. Refs #7523 .
...
[SVN r81368]
2012-11-16 15:05:25 +00:00
Peter Dimov
7adb1cc1ec
Reorder HP aCC and g++ #ifdefs. Refs #7693 .
...
[SVN r81348]
2012-11-14 18:24:05 +00:00
Glen Fernandes
da9524d637
Minor style change: Fix indentation in allocate_shared_array.hpp and make_shared_array.hpp
...
[SVN r81342]
2012-11-14 15:33:30 +00:00
Glen Fernandes
6b2556edfb
Add additional overload for allocate_shared and make_shared array forms that take initializer list of T for the array types T[M][N]
...
[SVN r81341]
2012-11-14 15:18:50 +00:00
Glen Fernandes
fa513340d7
Tidy long line formatting in allocate_shared_array.hpp and make_shared_array.hpp
...
[SVN r81277]
2012-11-10 02:33:48 +00:00
Glen Fernandes
0e90213746
Change traits for initializer list for g++
...
[SVN r81276]
2012-11-10 02:17:02 +00:00
Glen Fernandes
980070e63f
Add final overload of make_shared and allocate_shared (array forms) for T[][N] with C++11 initializer lists.
...
[SVN r81275]
2012-11-10 01:33:29 +00:00
Peter Dimov
5bdde37414
Updated shared_array to match shared_ptr. Refs #1113 .
...
[SVN r81272]
2012-11-10 00:04:49 +00:00
Peter Dimov
2aaa913b11
Keep old definition of sp_assert_convertible when BOOST_SP_NO_SP_CONVERTIBLE is set.
...
[SVN r81271]
2012-11-09 23:27:02 +00:00
Glen Fernandes
8cc50a5ce9
Add assertion to overload of make_shared and allocate_shared for T[N] with initializer lists. Rename detail type to be more intuitive.
...
[SVN r81267]
2012-11-09 18:01:39 +00:00
Glen Fernandes
2731957b5b
Add additional overload for make_shared and allocate_shared for arrays for fixed size arrays and initializer lists.
...
[SVN r81266]
2012-11-09 17:30:07 +00:00
Glen Fernandes
fe06c120b9
Add overloads to support fixed size arrays, T[N], to allocate_shared (variadic) and make_shared (variadic) and make_shared_noinit.
...
[SVN r81265]
2012-11-09 17:12:56 +00:00
Glen Fernandes
ffa3327817
For allocate_shared and make_shared: Separate test case that g++ does support yet. Remove macros testing for no partial specialization in traits. Add additional traits.
...
[SVN r81261]
2012-11-09 16:06:48 +00:00
Peter Dimov
999c284109
Disable make_shared for arrays when the compiler doesn't support partial specialization or SFINAE.
...
[SVN r81260]
2012-11-09 12:37:03 +00:00
Glen Fernandes
d512eaaa0f
Change make_shared and allocate_shared array form semantics with initializer lists overload that takes no size.
...
[SVN r81259]
2012-11-09 10:14:55 +00:00
Glen Fernandes
730980f3ee
Clean up code in allocate_shared_array.hpp and make_shared_array.hpp
...
[SVN r81258]
2012-11-09 09:14:23 +00:00
Glen Fernandes
3d50db11b9
Add C++11 initializer list support for make_shared and allocate_shared array forms.
...
[SVN r81257]
2012-11-09 06:17:05 +00:00
Peter Dimov
aa7562c3e5
Add support for shared_ptr<X[N>.
...
[SVN r81253]
2012-11-08 18:07:49 +00:00
Peter Dimov
945c013a12
Fix typo.
...
[SVN r81239]
2012-11-07 23:45:31 +00:00
Peter Dimov
df544871d7
Add missing semicolon.
...
[SVN r81238]
2012-11-07 23:41:52 +00:00
Glen Fernandes
89190ca17e
Simplify array_deleter interface
...
[SVN r81237]
2012-11-07 18:58:41 +00:00
Glen Fernandes
5d9312239c
Update allocate_shared and make_shared to treat multidimensional array as single dimension. Remove detail array_helper. Add detail array traits. Update tests.
...
[SVN r81236]
2012-11-07 18:37:17 +00:00
Glen Fernandes
93b5cace12
Fix array_helper (create_noinit and use of args...).
...
[SVN r81235]
2012-11-07 15:36:15 +00:00
Glen Fernandes
dbea328b8b
Don't treat array_helper create and create_noinit for array types as a special case.
...
[SVN r81233]
2012-11-07 15:25:55 +00:00
Glen Fernandes
734b5d1354
Update smart_ptr/detail/array_helper to have create and create_noinit for non-array case.
...
[SVN r81231]
2012-11-07 15:04:04 +00:00
Peter Dimov
0467af1b83
Fix sp_convertible<T const[], T const[]>.
...
[SVN r81230]
2012-11-07 15:00:24 +00:00
Glen Fernandes
dc5406aa5a
Add support for make_shared of array of arrays. Correctly destroy elements and construct elements for the variadic template constructor variants.
...
[SVN r81229]
2012-11-07 14:42:10 +00:00
Peter Dimov
322bcd7efa
Rename make_shared.hpp to make_shared_object.hpp, include from make_shared.hpp.
...
[SVN r81224]
2012-11-06 16:29:56 +00:00
Peter Dimov
bb72e0a092
Add specialization of sp_if_not_array<T[N]>.
...
[SVN r81223]
2012-11-06 16:23:09 +00:00
Peter Dimov
d8eb2fc105
Fix g++ issues.
...
[SVN r81222]
2012-11-06 15:10:32 +00:00
Glen Fernandes
6662ae7242
Add allocate_shared and make_shared for shared_ptr arrays of runtime size. Fulfills need for allocate_shared_array and make_shared_array.
...
[SVN r81219]
2012-11-06 14:17:32 +00:00
Peter Dimov
a30e291022
Disable make_shared<T> overloads when T is Q[].
...
[SVN r81171]
2012-11-04 14:53:51 +00:00
Peter Dimov
0b6cab9f2f
Fix shared_ptr<T[]> EDG issues.
...
[SVN r81159]
2012-11-03 14:49:45 +00:00
Peter Dimov
8c15401ea7
Implement shared_ptr<X[]>, weak_ptr<X[]>. Refs #1113 .
...
[SVN r81149]
2012-11-02 17:41:33 +00:00
Peter Dimov
03ae5cdbc6
Add back _AIX-specific #ifdef that was mistakenly removed. Refs #6308 . Refs #6667 .
...
[SVN r81134]
2012-11-01 17:50:41 +00:00
Peter Dimov
0c22e55f3e
Add shared_ptr constructor taking std::unique_ptr. Refs #6625 .
...
[SVN r81131]
2012-10-31 22:16:20 +00:00
Peter Dimov
10dcb8db7c
Define BOOST_SP_HAS_SYNC when __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is set. Refs #7141 .
...
[SVN r81128]
2012-10-31 20:37:21 +00:00
Peter Dimov
f2d4b67a48
Enable __sync primitives on VACPP. Refs #6901 .
...
[SVN r81127]
2012-10-31 20:30:27 +00:00
Peter Dimov
16084637a6
Do not use sp_counted_base_gcc_ppc on AIX. Refs #6996 .
...
[SVN r81126]
2012-10-31 20:16:56 +00:00
Peter Dimov
3e447c919c
Add get_pointer overloads for std::unique_ptr, std::shared_ptr. Refs #4185 .
...
[SVN r81125]
2012-10-31 20:04:14 +00:00
Peter Dimov
b0f72d7b3d
Add check for __ARM_ARCH_7S__. Refs #7599 .
...
[SVN r81119]
2012-10-31 16:04:03 +00:00
Bryce Adelstein-Lelbach
4c98df7c57
Update smart_ptr for the latest version of the PathScale compiler.
...
[SVN r80988]
2012-10-14 23:06:12 +00:00
Peter Dimov
1029ae0ea5
Apply patches from #6667 . Refs #6667 .
...
[SVN r77316]
2012-03-12 17:33:50 +00:00
Peter Dimov
27a312228c
Apply patch from #5331 . Refs #5331 .
...
[SVN r77315]
2012-03-12 17:31:21 +00:00
Peter Dimov
2c29f1e5a9
Warning 4284 is obsolete. Refs #6332 . See also #4433 .
...
[SVN r76219]
2011-12-29 22:27:37 +00:00
Peter Dimov
33ba2c4722
sp_counted_base_aix.hpp: switch to lwsync and builtins. Refs #6308 .
...
[SVN r76123]
2011-12-23 23:10:37 +00:00
Peter Dimov
faf212f4aa
Add memory barriers to sp_counted_base_aix.hpp. Refs #6308 .
...
[SVN r76119]
2011-12-23 15:03:39 +00:00
Peter Dimov
57a5441ebf
Creatively apply patch from #2603 . Refs #2603 .
...
[SVN r76111]
2011-12-23 03:00:05 +00:00
Peter Dimov
017ab7e2ee
Apply AIX patch from #6308 . Refs #6308 .
...
[SVN r76086]
2011-12-21 00:36:55 +00:00
Peter Dimov
e4cb5e131f
Add hash_value for intrusive_ptr. Refs #6087 .
...
[SVN r75392]
2011-11-07 18:46:46 +00:00
Peter Dimov
fbe4ddf4a2
Add get_deleter for shared_array. Refs #4493 .
...
[SVN r75390]
2011-11-07 18:19:24 +00:00
Peter Dimov
288fb7efcf
Add ARM memory barriers. Refs #5372 .
...
[SVN r75389]
2011-11-07 17:50:31 +00:00
Peter Dimov
9d9e6350f2
Apply patch from #6099 . Refs #6099 .
...
[SVN r75385]
2011-11-07 15:03:44 +00:00
Peter Dimov
7e9664396a
Add copy constructor/assignment - in C++0x, move disables implicit copy.
...
[SVN r73202]
2011-07-17 20:35:44 +00:00
Emil Dotchevski
b4b415553c
Lock-free sp_counted_base for SNC/PS3, thanks Peter Dimov
...
[SVN r72437]
2011-06-06 18:56:07 +00:00
Peter Dimov
f76a8d95d8
Apply suggested patch. Refs #5327 .
...
[SVN r70452]
2011-03-23 00:29:22 +00:00
Peter Dimov
634866c28a
Honor BOOST_SP_USE_PTHREADS. Refs #5018 .
...
[SVN r69262]
2011-02-24 23:35:22 +00:00
Peter Dimov
b18b47770d
Add support for BOOST_SP_NO_SYNC. Refs #5019 .
...
[SVN r69261]
2011-02-24 23:30:22 +00:00
Peter Dimov
69aa01ec00
Add hash_value for shared_ptr; prevents hash_value( bool ) from being used. Refs #5216 .
...
[SVN r69260]
2011-02-24 23:24:54 +00:00
Peter Dimov
e3d2f2ee6b
Apply suggested fix. Refs #4127 .
...
[SVN r69251]
2011-02-24 22:05:04 +00:00
Peter Dimov
593093e46d
Fix make_shared to not copy the deleter. Refs #4256 . Refs #3875 .
...
[SVN r69250]
2011-02-24 21:51:21 +00:00
Peter Dimov
9196247dea
Apply patch. Refs #4478 .
...
[SVN r69246]
2011-02-24 20:53:46 +00:00
Peter Dimov
53d5d086ea
Warning 4284 is obsolete. Refs #4433 .
...
[SVN r69245]
2011-02-24 20:48:17 +00:00
Peter Dimov
1426b0bbdd
Apply patch to allow perfect forwarding without variadics. Refs #4892 .
...
[SVN r69244]
2011-02-24 20:41:29 +00:00
Peter Dimov
4fabf9b352
Add include guards, make_shared.hpp to smart_ptr.hpp. Refs #4288 . Refs #5189 .
...
[SVN r69242]
2011-02-24 20:29:38 +00:00
Bryce Adelstein-Lelbach
a2fc6e12da
Intel 11.0 doesn't provide __sync intrinsics - this is added in Intel 11.1.
...
[SVN r69019]
2011-02-19 01:33:46 +00:00
Bryce Adelstein-Lelbach
c3b51e201b
Pathscale-4.0 configuration code/workarounds.
...
[SVN r68142]
2011-01-14 02:59:34 +00:00
Hartmut Kaiser
825786d59a
Re-added sunpro specific initialization
...
[SVN r66091]
2010-10-19 13:33:00 +00:00
Hartmut Kaiser
37f10d500d
Fixing sp_typeinfo for clang and gcc 4.5.1
...
[SVN r66031]
2010-10-17 02:24:40 +00:00
Peter Dimov
3c84388186
Resolve the ambiguity between the zero argument make_shared and the variadic one. Refs #3856 .
...
[SVN r62248]
2010-05-26 18:18:10 +00:00
Peter Dimov
a46d405778
DWORD is unsigned long, not unsigned int. Refs #4217 .
...
[SVN r62246]
2010-05-26 17:49:37 +00:00
Peter Dimov
2e53b1eb38
Applied patch for Sun C++. Refs #4199 .
...
[SVN r62245]
2010-05-26 17:43:58 +00:00
Peter Dimov
7aac2f3263
Fix detail::forward to work with rvalue references v2.
...
[SVN r61574]
2010-04-26 12:16:55 +00:00
Steven Watanabe
458dffdab9
Work around over-eager ADL with msvc-10.0. Refs #4108
...
[SVN r61344]
2010-04-17 20:13:27 +00:00
Peter Dimov
f7919f0b9f
Borland 6.21 still needs the workaround. Refs #4067 .
...
[SVN r61074]
2010-04-05 18:53:58 +00:00
Peter Dimov
ae34be773f
Qualify detail:: references. Detabify sp_typeinfo_test.cpp.
...
[SVN r58306]
2009-12-11 22:36:35 +00:00
Peter Dimov
1b91c1dbea
Avoid static destruction order issues with quick_allocator.
...
[SVN r58275]
2009-12-10 20:34:46 +00:00
Peter Dimov
577528812a
Fix sp_typeinfo to match the interface of std::type_info.
...
[SVN r58127]
2009-12-03 20:31:01 +00:00
Peter Dimov
3824a6b156
Add memory_order_consume.
...
[SVN r58094]
2009-12-02 11:47:58 +00:00
Peter Dimov
b691be0af9
Remove std::move references. Refs #3570 .
...
[SVN r57957]
2009-11-26 21:20:47 +00:00
Peter Dimov
fa597b877e
Extend Borland workaround to 6.2.
...
[SVN r57955]
2009-11-26 21:04:36 +00:00
Peter Dimov
d0a9d76494
Add error checking to lwm_pthreads.hpp. Refs #2681 .
...
[SVN r57953]
2009-11-26 20:55:05 +00:00
Peter Dimov
979e76b7e0
Enable __sync use on Intel 11.0 or later. Refs #3351 .
...
[SVN r57951]
2009-11-26 20:17:55 +00:00
Peter Dimov
030a848c5f
Fix SPARC asm operand failure. Refs #3678 . Refs #3341 .
...
[SVN r57949]
2009-11-26 18:21:21 +00:00
Frank Mori Hess
18bfaea996
Fixed perfect forwarding for make_shared() in trunk, and added
...
corresponding test. Refs #2962 .
[SVN r57520]
2009-11-09 18:12:35 +00:00
Frank Mori Hess
502de325ee
Fixed access to enable_shared_from_raw::weak_this_ when
...
BOOST_NO_MEMBER_TEMPLATE_FRIENDS is defined.
[SVN r57518]
2009-11-09 16:33:35 +00:00
Frank Mori Hess
9f49538b37
Added weak_from_raw(), for use in conjunction with
...
enable_shared_from_raw base class.
[SVN r57423]
2009-11-05 21:41:38 +00:00
Frank Mori Hess
2ee5eb70f3
Brought back code which fixes get_deleter when it is called on a deleter
...
which has been wrapped inside a deleter_wrapper by "shared_from_raw() in
constructors" support.
[SVN r57206]
2009-10-28 22:42:21 +00:00
Frank Mori Hess
32eb028e13
Renamed enable_shared_from_this2 to enable_shared_from_raw and
...
added shared_from_raw free function. These changes fix the pointer
value in shared_ptr which were obtained before an external shared_ptr has
taken ownership of the object (for example when a shared_ptr to
this is obtained in an object's constructor).
[SVN r57197]
2009-10-28 19:10:47 +00:00
Gennadiy Rozental
28d7e348c1
avoid C style casts
...
[SVN r53672]
2009-06-06 09:44:36 +00:00
Timothy Zachary Laine
fc12543814
Merged in smart_ptr changes from the sandbox/boost0x branch created for
...
BoostCon '09. This adds move semantics to weak_ptr and intrusive_ptr.
[SVN r52937]
2009-05-12 16:18:15 +00:00
Peter Dimov
4b4a62513f
Make ++a, where a is an atomic_count, return the new value.
...
[SVN r52456]
2009-04-17 20:24:01 +00:00
Peter Dimov
0368a37fde
Bring back "explicit" on the auto_ptr rvalue constructor. Refs #2951 .
...
[SVN r52454]
2009-04-17 19:51:18 +00:00
David Deakins
3dacec8e1d
Have config/select_stdlib_config.hpp and config/stdlib/stlport.hpp use <cstddef> instead of <utility> to determine which standard library is in use. For std lib implementations that rely on Boost components like TypeTraits, Bind, Function, or SmartPtr, this helps to avoid circular header dependency issues, since <cstddef> is much less likely to pull in Boost libraries than <utility>.
...
In get_pointer.hpp, switched to using <boost/config/no_tr1/memory.hpp> instead of using <memory> directly. As above, this helps avoid circular header dependency issues in Boost-supplemented std libs (specifically it avoids issues when <memory> pulls in pieces of Boost.SmartPtr).
These two changes were made in response to testing done with STLport 5.2.1 using the _STLP_USE_BOOST_SUPPORT option.
[SVN r52104]
2009-04-01 14:42:11 +00:00
Peter Dimov
5758e51948
Fix sp_typeinfo.hpp include. Refs #2885 .
...
[SVN r51985]
2009-03-26 12:47:24 +00:00
Peter Dimov
287d329276
Added g++/MIPS support submitted by David Joyner. Refs #2885 .
...
[SVN r51978]
2009-03-26 00:17:57 +00:00
Peter Dimov
d34d638998
Bring back the constructor-enabled enable_shared_from_this as enable_shared_from_this2.
...
[SVN r51912]
2009-03-22 21:11:17 +00:00
Peter Dimov
6f2bdddfa0
Delete enable_shared_from_this2.hpp from boost/.
...
[SVN r51910]
2009-03-22 20:14:13 +00:00
Peter Dimov
9227371881
Move enable_shared_from_this2.hpp to boost/smart_ptr.
...
[SVN r51909]
2009-03-22 20:13:16 +00:00
Peter Dimov
e88dd9fc77
Bring back the new enable_shared_from_this.
...
[SVN r51908]
2009-03-22 20:08:39 +00:00
Peter Dimov
0610947c4a
De-optimize assignment into this_type(r).swap(*this) - turns out that they were not equivalent, leading to leaks in contrived cases. Refs #2813 .
...
[SVN r51643]
2009-03-07 22:21:56 +00:00
Peter Dimov
9c55fbc6c2
Fix enable_shared_from_this-related tickets in trunk. Refs #2126 . Refs #2584 .
...
[SVN r51581]
2009-03-03 19:25:26 +00:00
Peter Dimov
a378c8c278
Refs #2814 (fixed in trunk.)
...
[SVN r51518]
2009-03-01 18:42:44 +00:00
Peter Dimov
905a3711db
Refs #2525 (fixed in trunk.)
...
[SVN r51517]
2009-03-01 18:01:19 +00:00
Peter Dimov
ed32efcc51
Refs #2662 (applied to trunk.)
...
[SVN r51516]
2009-03-01 17:27:35 +00:00
Peter Dimov
eb0ff40d62
Refs #2675 (fixed in trunk.)
...
[SVN r51515]
2009-03-01 17:18:17 +00:00
Peter Dimov
ad1b344405
Refs #2394 (fixed in trunk.)
...
[SVN r51514]
2009-03-01 17:10:49 +00:00
Peter Dimov
0da6902267
Move smart_ptr into boost/smart_ptr/*.hpp (refs #2239 ).
...
[SVN r51509]
2009-03-01 16:00:42 +00:00
Peter Dimov
13f91c15f0
Sync enable_shared_from_this.hpp and shared_ptr.hpp with release.
...
[SVN r51485]
2009-02-28 20:02:12 +00:00
Nicola Musatti
ed79000ea8
Patch from Ticket #2342
...
[SVN r49153]
2008-10-06 20:17:18 +00:00
Peter Dimov
774332f85a
Fix #2263 . See also [48835].
...
[SVN r48838]
2008-09-17 22:53:53 +00:00
Peter Dimov
f5990cab65
Fix #1758 . V9 is the default for g++ 4.2 or later, on 4.1 and earlier do not attempt to use CAS on V8.
...
[SVN r48837]
2008-09-17 22:49:18 +00:00
Peter Dimov
6175baf858
Fix #2000 .
...
[SVN r48836]
2008-09-17 22:43:14 +00:00
Peter Dimov
2fb567b3f2
Fix #2336 .
...
[SVN r48835]
2008-09-17 22:37:13 +00:00
Peter Dimov
2b25579338
Fix #2310 .
...
[SVN r48834]
2008-09-17 22:31:13 +00:00
Peter Dimov
a97cd2d0cc
Fix #2337 .
...
[SVN r48833]
2008-09-17 22:21:56 +00:00
Peter Dimov
77ab953171
Updated atomic access syntax to match N2674 and the WD.
...
[SVN r47357]
2008-07-12 16:07:20 +00:00
Peter Dimov
2a92df56f2
#include <ia64intrin.h> in spinlock_sync.hpp as well.
...
[SVN r46055]
2008-06-02 20:01:30 +00:00
Peter Dimov
366472fc35
Fix #1938 in trunk
...
[SVN r45690]
2008-05-23 20:29:14 +00:00
Peter Dimov
2bfe13c9c4
Renamed CRITICAL_SECTION to critical_section to avoid ambiguity.
...
[SVN r45545]
2008-05-19 15:09:54 +00:00
John Maddock
83e2510ce5
Use the "no_tr1" version of <functional>: addition of Boost.Exception support to throw_exception has created new cyclic dependencies with Boost.TR1.
...
[SVN r45422]
2008-05-16 11:12:32 +00:00
Peter Dimov
31685fe551
Updated Borland workaround to properly use BOOST_NO_MEMBER_TEMPLATE_FRIENDS.
...
[SVN r45347]
2008-05-14 00:21:28 +00:00
Peter Dimov
05e050abe0
Disable sp_convertible for Borland 5.x.
...
[SVN r45346]
2008-05-13 23:53:12 +00:00
Ion Gaztañaga
d52878df88
Replaced non-ascii characters, ticket 1736
...
[SVN r45224]
2008-05-08 19:08:38 +00:00
Peter Dimov
4b0490c0ae
Fix sp_convertible_test.cpp failure in C++0x mode.
...
[SVN r45194]
2008-05-07 10:15:16 +00:00
Peter Dimov
2f1b1acc7a
Fix g++ 3.2 regression.
...
[SVN r45177]
2008-05-06 18:58:15 +00:00
Peter Dimov
efdc390bc9
intrusive_ptr::reset() added.
...
[SVN r45089]
2008-05-03 20:12:25 +00:00
Peter Dimov
d13f1d8694
More fixes for MSVC 6.0.
...
[SVN r45086]
2008-05-03 19:43:52 +00:00
Peter Dimov
83c43617af
Fixes for MSVC 6.0.
...
[SVN r45085]
2008-05-03 19:29:01 +00:00
Peter Dimov
da323af72d
Fixes for old compilers.
...
[SVN r45069]
2008-05-03 15:33:06 +00:00
Peter Dimov
0c4aaef77c
Fix #1106 .
...
[SVN r45068]
2008-05-03 15:07:58 +00:00
Ralf W. Grosse-Kunstleve
440fcb7ba0
missing workaround.hpp include added
...
[SVN r45040]
2008-05-02 19:44:56 +00:00
Peter Dimov
18a6c1add8
make_shared added; tweaks for old compilers; fixes #1884 .
...
[SVN r44979]
2008-05-01 16:50:39 +00:00
Daniel Frey
357d3c4d54
Fixed comment to reflect the intention and the current code
...
[SVN r44873]
2008-04-29 05:32:13 +00:00
Daniel Frey
e3422efec6
Improved sp_deleter_wrapper implementation
...
[SVN r44837]
2008-04-28 07:17:11 +00:00
Daniel Frey
a01e4c3f83
Refactored and optimized enable_shared_from_this
...
[SVN r44782]
2008-04-26 19:59:11 +00:00
Daniel Frey
6f8dc5923c
Added new reset()-counterparts for the new ctors
...
[SVN r44777]
2008-04-26 15:42:13 +00:00
Daniel Frey
2251b1d2df
No need for the new ctors to be templates
...
[SVN r44772]
2008-04-26 06:36:59 +00:00
Daniel Frey
8b3907ae81
Remove dynamic_cast in init_internal_shared_once()
...
[SVN r44744]
2008-04-23 19:32:44 +00:00
Daniel Frey
77f2d3f614
Reduce enable_shared_from_this overhead (replace _internal_shared_ptr by _internal_shared_count)
...
[SVN r44730]
2008-04-23 06:12:39 +00:00
Peter Dimov
93545d5cf2
Silence an g++ -Wextra warning.
...
[SVN r44728]
2008-04-23 00:33:58 +00:00
Daniel Frey
9e92c6354c
Reduce enable_shared_from_this overhead
...
[SVN r44724]
2008-04-22 19:48:39 +00:00
Daniel Frey
e12ed6864b
Avoid unneccessary increment/decrement of reference count
...
[SVN r44711]
2008-04-22 06:31:32 +00:00
Peter Dimov
b541145a60
Honor BOOST_NO_TEMPLATED_IOSTREAMS.
...
[SVN r44707]
2008-04-21 23:01:51 +00:00
Jürgen Hunold
ca344809ba
Remove trailing comma at end of enumerator list (gcc 4.x -pedantic error)
...
[SVN r44686]
2008-04-21 08:07:55 +00:00
Peter Dimov
04be979670
Atomic access added.
...
[SVN r44636]
2008-04-20 14:59:12 +00:00
John Maddock
35f2af947c
Changed #includes to avoid circular dependencies between shared_ptr and TR1.
...
[SVN r44595]
2008-04-19 16:28:00 +00:00
Frank Mori Hess
3a578ac7c1
Added another BOOST_ASSERT to enable_shared_from_this::_internal_accept_owner.
...
[SVN r44499]
2008-04-17 13:40:44 +00:00
Frank Mori Hess
9365853fde
Avoid needless overhead of wrapping owner's deleter in deleter_wrapper if
...
shared_from_this has not been called yet, as Peter suggested
earlier.
[SVN r44448]
2008-04-16 00:06:29 +00:00
Peter Dimov
16828c9c0a
Disabled sync use for hppa.
...
[SVN r44441]
2008-04-15 19:02:13 +00:00
Peter Dimov
b45d011d5a
Honor BOOST_DISABLE_THREADS; route GCC/ARM to the spinlock implementation; fall back to the spinlock implementation instead of using pthread_mutex.
...
[SVN r44369]
2008-04-13 15:35:40 +00:00
Peter Dimov
4094c23537
sp_accept_owner added.
...
[SVN r44353]
2008-04-12 18:22:18 +00:00
Peter Dimov
f85a1bf406
shared_ptr::lock no longer requires exceptions.
...
[SVN r44344]
2008-04-12 14:27:22 +00:00
Peter Dimov
dbd62686a3
ARM assembly fix.
...
[SVN r44140]
2008-04-09 23:19:22 +00:00
Peter Dimov
e4f638025c
spinlock_gcc_arm.hpp added.
...
[SVN r44138]
2008-04-09 21:08:39 +00:00
Peter Dimov
d8296b3933
sp_counted_base_spin.hpp added, enabled by BOOST_SP_USE_SPINLOCK.
...
[SVN r44137]
2008-04-09 19:58:54 +00:00
Peter Dimov
b4885a1dd6
Proper try_lock semantics.
...
[SVN r44132]
2008-04-09 17:49:20 +00:00
Peter Dimov
748b1baee8
detail/spinlock_pool.hpp added.
...
[SVN r44074]
2008-04-06 16:53:11 +00:00
Peter Dimov
6b25c57712
BOOST_COMPILER_FENCE factored out.
...
[SVN r44058]
2008-04-05 16:32:49 +00:00
Peter Dimov
373c52efa3
BOOST_SMT_PAUSE factored out.
...
[SVN r44056]
2008-04-05 15:23:28 +00:00
Peter Dimov
acb6824ef7
spinlock_nt.hpp added, Cygwin fixes.
...
[SVN r44055]
2008-04-05 15:06:31 +00:00
Peter Dimov
515be965bd
Fix #1759 in trunk.
...
[SVN r44004]
2008-04-02 21:42:52 +00:00
Peter Dimov
6ef32e1627
boost::detail::spinlock added.
...
[SVN r43950]
2008-03-30 16:33:58 +00:00
Peter Dimov
2452705117
Missing "inline" added.
...
[SVN r43916]
2008-03-28 20:44:45 +00:00
Peter Dimov
bb076d67e6
detail::yield(k) added.
...
[SVN r43888]
2008-03-27 22:20:11 +00:00
Peter Dimov
b08789b784
Silence unused parameter warning.
...
[SVN r43887]
2008-03-27 22:13:55 +00:00
Peter Dimov
dc6a8f0696
_internal_accept_owner now checks if _owned isn't already true.
...
[SVN r43856]
2008-03-25 15:46:40 +00:00
Peter Dimov
af7d4fabad
New enable_shared_from_this tests, fix.
...
[SVN r43829]
2008-03-24 16:00:28 +00:00
Frank Mori Hess
d17a096407
Fixed compile error with new enable_shared_from_this code,
...
reported by Tim Blechmann
[SVN r43823]
2008-03-24 15:07:00 +00:00
Frank Mori Hess
b30aa1468a
Worked around compilation error in boost::get_deleter when using old versions
...
of g++.
[SVN r43766]
2008-03-21 19:19:25 +00:00
Peter Dimov
5b17f88f0e
Initialize _owned in the copy constructor as well.
...
[SVN r43739]
2008-03-20 22:10:52 +00:00
Frank Mori Hess
1c2d780f9e
Added support for calling enable_shared_from_this::shared_from_this in
...
constructors. Closes #1696 .
[SVN r43738]
2008-03-20 19:32:43 +00:00
Peter Dimov
3a4dc43924
Fix #398 , as long as the macros BOOST_NO_STD_TYPEINFO and BOOST_NO_IOSTREAM are defined. I don't know how Boost.Config needs to be changed to autodetect eVC4 and set these on its own.
...
[SVN r43318]
2008-02-19 14:26:36 +00:00
Peter Dimov
a055d9829e
Fixes #1444 .
...
[SVN r43317]
2008-02-19 14:01:13 +00:00
Peter Dimov
e6f6ec9fa3
Attempt unspecified bool fix for Sun 5.7-5.9
...
[SVN r40914]
2007-11-07 22:47:55 +00:00
Peter Dimov
f854829d86
Port unspecified_bool fix for Sun 5.8 from RC_1_34
...
[SVN r40708]
2007-11-02 23:46:04 +00:00
Boris Gubenko
7b5beeedde
fix typo in comment
...
[SVN r40605]
2007-10-30 12:58:36 +00:00
Boris Gubenko
9e41d1f194
add support for aC++ on HP-UX ia64
...
[SVN r40604]
2007-10-30 12:48:44 +00:00
Boris Gubenko
f49a2fb1e1
add support for aC++ on HP-UX ia64
...
[SVN r40603]
2007-10-30 12:43:47 +00:00
Peter Dimov
9db307eda5
defined(__ppc) added (Daniel P Furlani)
...
[SVN r39427]
2007-09-20 20:46:56 +00:00
Peter Dimov
5a85c1f0f2
CINT support (Nils Krumnack)
...
[SVN r39282]
2007-09-14 19:19:09 +00:00
Peter Dimov
f5ce4dbc4c
Fixes #1243
...
[SVN r39199]
2007-09-11 20:58:19 +00:00
Peter Dimov
b2354d0a5e
BOOST_NO_TYPEID support ( #1108 ).
...
[SVN r38977]
2007-08-26 20:35:52 +00:00
Peter Dimov
e0ca42bb88
BOOST_NO_TYPEID support ( #1108 ).
...
[SVN r38976]
2007-08-26 20:34:40 +00:00
Peter Dimov
bca336bf35
Updated the unspecified_bool_type to match shared_ptr.
...
[SVN r38975]
2007-08-26 19:42:50 +00:00
Peter Dimov
ecb41cb150
sp_unary_addr_test added (reported by Scott French)
...
[SVN r38137]
2007-07-04 16:35:44 +00:00
Peter Dimov
5b57eff9b8
atomic_count_gcc_x86 added since _sync doesn't work on i386
...
[SVN r37637]
2007-05-08 20:14:38 +00:00
Peter Dimov
f980da560a
Use __sync intrinsics on g++ 4.1+
...
[SVN r37528]
2007-04-28 18:13:12 +00:00
Peter Dimov
ffba68221b
Use __sync intrinsics on g++ 4.1+
...
[SVN r37527]
2007-04-28 16:15:13 +00:00
Peter Dimov
86d3f0aba7
Changed move constructors/assignments to leave the source empty
...
[SVN r37439]
2007-04-15 02:47:45 +00:00
Peter Dimov
66a25bd4a9
Move support
...
[SVN r37434]
2007-04-13 22:04:22 +00:00
Peter Dimov
26f83e75ef
intrusive_ptr::reset added
...
[SVN r37406]
2007-04-09 21:35:07 +00:00
Peter Dimov
ce72827dc7
Aliasing support
...
[SVN r37405]
2007-04-09 18:48:47 +00:00
Peter Dimov
6e8f075d42
make_shared removed
...
[SVN r37404]
2007-04-09 18:42:49 +00:00
Peter Dimov
ae6c180be8
_MANAGED fix for sp_enable_shared_from_this
...
[SVN r37403]
2007-04-09 16:37:30 +00:00
Peter Dimov
54e12d03fd
Aliasing constructor added
...
[SVN r37402]
2007-04-09 16:32:45 +00:00
Peter Dimov
97118668e2
Fix compare_fail failure
...
[SVN r37373]
2007-04-06 00:21:41 +00:00
Peter Dimov
1c3813ce52
BOOST_ASSERTs added (SF patch 1612733 by 'Baraclese')
...
[SVN r36316]
2006-12-10 21:01:55 +00:00
Peter Dimov
b440e85452
Fixed get_deleter comment
...
[SVN r36229]
2006-12-01 14:24:58 +00:00
Peter Dimov
6284a1abef
TR1 conformance fix
...
[SVN r35948]
2006-11-09 12:15:23 +00:00
Peter Dimov
75bc821afd
Patch #1551992 (Michael Fink)
...
[SVN r35882]
2006-11-06 17:25:59 +00:00
Peter Dimov
6412de1dd5
TR1 cyclic dependency fixes.
...
[SVN r34499]
2006-07-10 13:17:41 +00:00
Peter Dimov
8d2f7fc5ef
g++/SPARC version by Piotr Wyderski, thanks to Tomas Puverle and Michael van der Westhuizen
...
[SVN r34480]
2006-07-08 17:44:55 +00:00
Peter Dimov
ffd73c39b3
Solaris implementation by Michael van der Westhuizen
...
[SVN r34450]
2006-07-03 10:02:46 +00:00
Peter Dimov
4fcee64483
New, improved and more portable unspecified bool type. I hope.
...
[SVN r33987]
2006-05-17 22:39:34 +00:00
Peter Dimov
203764eb51
Fix VC6 codegen issue (Alain Cormier)
...
[SVN r33747]
2006-04-19 21:03:18 +00:00
Peter Dimov
747c9a1d3e
Rvalue auto_ptr constructor is no longer explicit.
...
[SVN r33526]
2006-03-29 19:19:14 +00:00
Peter Dimov
e38d0daaab
Fix issues on HP-UX (ILP32 model)
...
[SVN r33449]
2006-03-22 22:46:53 +00:00
Peter Dimov
24d1e6f8dd
Added 'm'(*pw) inputs (thanks to Howard Hinnant)
...
[SVN r33364]
2006-03-18 01:48:21 +00:00
Peter Dimov
e427716dc2
Fully qualified detail:: to work around a subtle VC 7.1 problem.
...
[SVN r32994]
2006-02-18 19:17:33 +00:00
Peter Dimov
a86b2f7fbf
Rvalue auto_ptr support, technique by Dave Abrahams
...
[SVN r32326]
2006-01-15 13:54:53 +00:00
Peter Dimov
90b5a3736a
Pointer utilities added (proposed by Ion Gaztañaga)
...
[SVN r31932]
2005-12-06 13:26:13 +00:00
Peter Dimov
239bb6d966
#include reorderings for Boost.TR1
...
[SVN r31623]
2005-11-11 21:06:08 +00:00
Peter Dimov
25ca855127
shared_ptr( p, d, a ) added.
...
[SVN r31613]
2005-11-09 20:05:42 +00:00
Peter Dimov
0127c06692
Added a note that it's not necessary to initialize _internal_weak_this.
...
[SVN r31566]
2005-11-05 14:40:29 +00:00
Peter Dimov
92a027fbeb
Minor warning fix for SGI MIPSPro (Kevin Wheatley)
...
[SVN r31113]
2005-09-25 22:00:31 +00:00
Peter Dimov
7bfddbccf6
Comparison operators against a raw pointer now accept different types
...
[SVN r31110]
2005-09-25 21:27:00 +00:00
Douglas Gregor
c6a4e93a05
Qualify detail references
...
[SVN r30824]
2005-09-06 03:28:01 +00:00
John Maddock
ff7e027648
Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
...
[SVN r30670]
2005-08-25 16:27:28 +00:00
Peter Dimov
08f517b5b0
Switched to 'int' because 'long' is 64 bits on PPC64
...
[SVN r30641]
2005-08-23 21:32:42 +00:00
Peter Dimov
6b3f961542
Removed explicit register use (thanks to Howard Hinnant)
...
[SVN r30585]
2005-08-15 19:44:15 +00:00
Peter Dimov
8d2aeea3a8
Moved warning 8027 suppression above the #includes
...
[SVN r29852]
2005-06-30 21:49:40 +00:00
Joaquín M. López Muñoz
24c23b8064
disabled asm implementation for ICC/IA64
...
[SVN r29166]
2005-05-24 12:11:35 +00:00
Peter Dimov
880c2e1062
Detabified.
...
[SVN r29039]
2005-05-18 20:10:01 +00:00
Rene Rivera
8bacee46eb
Add x86 assembly implementation for use with CodeWarrior. Commented out initially until we can get more widespread testing for verification of performance improvements (if any).
...
[SVN r28422]
2005-04-22 16:36:38 +00:00
Ben Hutchings
4e4ec29fc9
Added an implementation of sp_counted_base for g++/ia64.
...
[SVN r28325]
2005-04-19 17:43:48 +00:00
Rene Rivera
df1d8b27df
Make assembly functions inline to prevent multiple definitions. Required to change from function level assembly to regular functions with statement level assembly.
...
[SVN r28133]
2005-04-11 15:59:44 +00:00
Peter Dimov
76722e125f
Clear reservation for 970 (thanks to Miro Jurisic and Philip Koch)
...
[SVN r28060]
2005-04-08 10:39:28 +00:00
Peter Dimov
d24f6d3b97
Remove hardcoded ebx
...
[SVN r28017]
2005-04-06 14:12:40 +00:00
Peter Dimov
6ab6b66601
One more long -> int fix
...
[SVN r28016]
2005-04-06 13:40:34 +00:00
Peter Dimov
559056c856
x86-64 fixes: long -> int, lea -> mov+inc
...
[SVN r28015]
2005-04-06 13:34:41 +00:00
Peter Dimov
13c128f98f
Enabled PPC versions
...
[SVN r28007]
2005-04-06 08:15:48 +00:00
Rene Rivera
3ebc9b8f0b
Remove extra argument to atomic_dcrement.
...
[SVN r27994]
2005-04-06 00:32:09 +00:00
Peter Dimov
361a7c3fd0
PowerPC dispatch added, disabled for now.
...
[SVN r27988]
2005-04-05 20:39:56 +00:00
Peter Dimov
faa675ad6a
PowerPC implementations added.
...
[SVN r27986]
2005-04-05 20:29:15 +00:00
Peter Dimov
319836fe78
Constraints fixed (again), volatile/memory clobber removed from conditional_inc
...
[SVN r27983]
2005-04-05 16:04:36 +00:00
Peter Dimov
d0656015ad
Fixed 'eax' to '%eax' in clobber; enabled gcc/x86 version
...
[SVN r27965]
2005-04-04 22:43:03 +00:00
Peter Dimov
f1a9148a43
Constraints fixed for g++ 3.4, atomic_increment added
...
[SVN r27958]
2005-04-04 19:36:18 +00:00
Peter Dimov
a0eb5daf75
Mark eax as earlyclobber
...
[SVN r27937]
2005-04-02 18:56:38 +00:00
Peter Dimov
6046a099ba
Added an implementation of sp_counted_base for g++/x86
...
[SVN r27933]
2005-04-02 17:14:26 +00:00
Peter Dimov
e0ee037e2d
Spinlocks removed.
...
[SVN r27932]
2005-04-02 13:12:28 +00:00
Peter Dimov
52587aaa05
Fixed shared_ptr_delete_fail failure on g++ 3.3 and below
...
[SVN r27930]
2005-04-02 12:00:14 +00:00
Peter Dimov
0669d41076
Atomics are in namespace __gnu_cxx for g++ 3.4+
...
[SVN r27929]
2005-04-02 11:37:53 +00:00
Peter Dimov
8f2beee8e9
Link fixed.
...
[SVN r27906]
2005-04-01 19:33:00 +00:00
Peter Dimov
3adfc7842c
Kill *_linux variants of atomic_count and lightweight_mutex.
...
[SVN r27889]
2005-03-30 22:52:54 +00:00
Peter Dimov
a67e505cf5
Made use of detail/interlocked.hpp
...
[SVN r27810]
2005-03-24 21:29:29 +00:00
Peter Dimov
c6bf857f8b
Made the pthread mutex mutable
...
[SVN r27740]
2005-03-18 21:27:22 +00:00
Peter Dimov
14024e2598
Add a comment thanking Ben Hutchings for the #w+(#s!=0) formulation
...
[SVN r27735]
2005-03-18 13:04:43 +00:00
Peter Dimov
34953d8a45
Split sp_counted_base into no threads (nt), win32 lock-free (w32) and pthreads (pt)
...
[SVN r27729]
2005-03-18 01:27:11 +00:00
Peter Dimov
09a0ba8c75
sp_counted_impl_p added for the pointer constructor
...
[SVN r27727]
2005-03-17 23:30:47 +00:00
Peter Dimov
b0eb65b433
Refactored sp_counted_impl.hpp out of shared_count.hpp
...
[SVN r27726]
2005-03-17 23:05:26 +00:00
Peter Dimov
c830315dff
Refactored shared_count.hpp into bad_weak_ptr.hpp, sp_counted_base.hpp
...
[SVN r27725]
2005-03-17 22:45:11 +00:00
Peter Dimov
b07447aa6e
BCB 6.4 still needs option -pc (reported by Pavel Vozenilek)
...
[SVN r27672]
2005-03-15 16:02:01 +00:00
Peter Dimov
7d59d29ad1
HP aCC fix for get_deleter (Jaroslav Gresula)
...
[SVN r27092]
2005-02-04 16:28:50 +00:00
Peter Dimov
8f317492ee
Outdated comment removed (Jonathan Wakely)
...
[SVN r26272]
2004-11-22 12:32:35 +00:00
John Maddock
1bc58ea861
Updated to use the BSL (using permissions supplied in more/blanket-permission.txt)
...
[SVN r24804]
2004-08-29 10:29:46 +00:00
Peter Dimov
27be736b8f
Fixed sp_enable_shared_from_this to not use void cv * since this breaks function types.
...
[SVN r24718]
2004-08-24 16:27:31 +00:00
Douglas Gregor
ef51f6a1de
License update
...
[SVN r24598]
2004-08-19 15:23:47 +00:00
Douglas Gregor
6b00a55542
License updates
...
[SVN r24597]
2004-08-19 15:19:17 +00:00
John Maddock
858cefbfe8
Removed boost.org copyright assignments, and reverted to orginal author (as based on cvs history).
...
[SVN r24402]
2004-08-11 10:59:33 +00:00
Douglas Gregor
cb6cb636f7
Converted to Boost Software License, Version 1.0
...
[SVN r24055]
2004-07-26 00:32:12 +00:00
Peter Dimov
9c67a59d43
Fixed lwm_gcc, had the same bug as atomic_count_gcc (Tyson Whitehead)
...
[SVN r23367]
2004-07-06 10:52:06 +00:00
Peter Dimov
7361e476b8
Fixed operator--
...
[SVN r23210]
2004-06-27 15:40:29 +00:00
Peter Dimov
e1bd18f6a6
Made value_ mutable to enable operator long() const to compile
...
[SVN r23208]
2004-06-27 15:09:46 +00:00
Peter Dimov
c48f05dcb4
enable_shared_from_this is now const-tolerant.
...
[SVN r22298]
2004-02-16 18:50:07 +00:00
Peter Dimov
53cc52127b
Self-assignment optimization
...
[SVN r22233]
2004-02-10 23:17:12 +00:00
Peter Dimov
93d69af60a
_MSC_VER use clarified.
...
[SVN r20992]
2003-11-28 15:35:21 +00:00
Dave Abrahams
15d6b2aace
CWPro8 workaround
...
[SVN r20323]
2003-10-09 14:14:26 +00:00
Dave Abrahams
feff6e40ea
Use conforming is_class for EDG compilers
...
Make is_enum work for class types which are convertible to anything at
all (on many compilers).
smart_ptr library workarounds for __MWERKS__ (must use member function
pointer for unspecified_bool_type).
[SVN r20244]
2003-10-02 17:49:06 +00:00
Peter Dimov
96f572b19b
Switched unspecified_bool_type to data member pointer.
...
[SVN r20238]
2003-10-01 11:12:15 +00:00
Peter Dimov
f2c5439644
'volatile' fixes.
...
[SVN r19961]
2003-09-08 12:26:02 +00:00
Peter Dimov
b4ec0e90fb
Switched weak_count_ from #shared+#weak to #weak+(#shared != 0); thanks to Alexander Terekhov and Ben Hutchings
...
[SVN r19246]
2003-07-21 14:17:03 +00:00
Peter Dimov
2d4eb92401
get_deleter fix for EDG 2.38
...
[SVN r19148]
2003-07-16 11:54:49 +00:00
Peter Dimov
192970b3b8
const_pointer_cast added.
...
[SVN r19147]
2003-07-16 11:51:12 +00:00
Peter Dimov
7c36a640ae
add_ref split to add_ref_copy and add_ref_lock to eliminate the redundant use_count_ == 0 check.
...
[SVN r19126]
2003-07-15 12:18:40 +00:00
Peter Dimov
794de98cd1
#include <boost/config.hpp> added.
...
[SVN r19065]
2003-07-11 17:03:56 +00:00
Peter Dimov
dcdbaf1e57
A binary compatible 'null' lightweight_mutex for Win32 added.
...
[SVN r18916]
2003-07-02 11:54:40 +00:00
Peter Dimov
889cb6bee6
-Wundef fixes.
...
[SVN r18788]
2003-06-12 17:09:24 +00:00
Peter Dimov
77c629b6e4
smart_ptr.hpp now includes all smart pointer headers for convenience.
...
[SVN r18588]
2003-05-28 13:51:35 +00:00
Peter Dimov
d091ee85c0
Turns out Sun CC doesn't like operator int().
...
[SVN r18512]
2003-05-23 13:46:07 +00:00
Peter Dimov
bc00d5fa1a
Fixed bool conversions for Sun 5.3
...
[SVN r18419]
2003-05-16 12:11:17 +00:00
Peter Dimov
e760759414
Fixed a copy/assignment issue.
...
[SVN r18122]
2003-03-28 12:27:55 +00:00
Peter Dimov
851d87a1bb
get_shared_ptr renamed to weak_ptr::lock.
...
[SVN r17307]
2003-02-10 15:56:36 +00:00
Peter Dimov
34f423f811
atomic_count and lightweight_mutex now report an #error on unknown threading configs.
...
[SVN r17303]
2003-02-10 12:58:50 +00:00
Peter Dimov
190893a1ce
BOOST_ENABLE_SP_DEBUG_HOOKS -> BOOST_SP_ENABLE_DEBUG_HOOKS
...
[SVN r17301]
2003-02-10 12:54:43 +00:00
Peter Dimov
4244992d4d
Split winapi.hpp across win32-specific headers, added BOOST_USE_WINDOWS_H option.
...
[SVN r17277]
2003-02-08 16:05:46 +00:00
Peter Dimov
86e9a322ba
Documentation fixes, make_shared -> get_shared_ptr.
...
[SVN r17230]
2003-02-05 12:56:48 +00:00
Peter Dimov
be0267f9a3
Enabled copy assignment on all Borland versions (for Kylix) and g++ (for -Wsynth, report by Wolfgang Bangerth)
...
[SVN r17173]
2003-02-03 13:48:33 +00:00
Peter Dimov
cd41426fe9
Dave's quick_allocator added, #define BOOST_SP_USE_QUICK_ALLOCATOR to make shared_ptr use it.
...
[SVN r17087]
2003-01-30 14:20:22 +00:00
Peter Dimov
fabd6e5755
Moved 'garbage collector' to sp_collector.cpp, collector_test.cpp added.
...
[SVN r17050]
2003-01-27 14:02:00 +00:00
Peter Dimov
d030182e87
intrusive_ptr_test added.
...
[SVN r16993]
2003-01-22 15:22:30 +00:00
Peter Dimov
bd39e2eded
intrusive_ptr.html added.
...
[SVN r16981]
2003-01-21 17:21:24 +00:00
Peter Dimov
6bd66fe054
detail::counted_base renamed to sp_counted_base.
...
[SVN r16900]
2003-01-14 15:13:53 +00:00
Peter Dimov
c5bae28eeb
use_count() postconditions added; enable_..._test.cpp renamed.
...
[SVN r16896]
2003-01-13 18:32:16 +00:00
Peter Dimov
e3f2329c14
report_unreachable_objects() added to sp_debug_hooks.cpp
...
[SVN r16780]
2003-01-07 15:34:56 +00:00
Peter Dimov
3e616752c9
weak_ptr documentation updated; still a work in progress.
...
[SVN r16748]
2003-01-04 14:24:14 +00:00
Peter Dimov
987a7d32fb
Documentation updated to reflect changes to shared_ptr
...
[SVN r16739]
2003-01-03 16:53:04 +00:00
Dave Abrahams
fafd9a863b
Workarounds for vc6-stlport
...
[SVN r16706]
2002-12-26 18:23:11 +00:00
Dave Abrahams
51e9783a21
Factor out get_pointer, supply an overload for std::auto_ptr.
...
[SVN r16672]
2002-12-20 18:15:01 +00:00
Peter Dimov
eee96e8059
Borland 5.6.1 still broken.
...
[SVN r16666]
2002-12-19 18:15:53 +00:00
Peter Dimov
c5f7c973d9
Bug in get_deleter fixed.
...
[SVN r16477]
2002-12-02 14:34:06 +00:00
Peter Dimov
572a97d3c4
Casts renamed.
...
[SVN r16457]
2002-11-29 14:05:22 +00:00
Peter Dimov
e60c1f9b49
Some versions of g++ 2.9x don't have basic_ostream.
...
[SVN r16406]
2002-11-25 13:52:42 +00:00
Peter Dimov
12b1871136
operator<< added, as the conversion to 'bool' implicitly defines one anyway.
...
[SVN r16403]
2002-11-25 12:27:11 +00:00
Peter Dimov
9632464c45
Test w/ NULL pointer to enabled_... object added; bug fixed.
...
[SVN r16402]
2002-11-25 12:17:56 +00:00
Peter Dimov
980307a90a
Reintroduced weak_ptr converting constructor; map<weak_ptr<>, ...> is important.
...
[SVN r16400]
2002-11-25 12:09:13 +00:00
Peter Dimov
1f9908be69
Borland C++ 5.6 still needs the workaround.
...
[SVN r16379]
2002-11-23 19:18:05 +00:00
Peter Dimov
5dd2c62132
weak_ptr converting constructor removed; operator< can now take different types to aid ownership tests.
...
[SVN r16376]
2002-11-23 12:47:38 +00:00
Peter Dimov
fadc0716ce
get_deleter_test added; associated fixes.
...
[SVN r16373]
2002-11-22 16:29:51 +00:00
Peter Dimov
ea285b4231
Fixed the previous weak_ptr 'fix'.
...
[SVN r16370]
2002-11-22 14:41:22 +00:00
Peter Dimov
8d6517484c
Stricter tests; associated bug fixes. ;-)
...
[SVN r16369]
2002-11-22 13:49:54 +00:00
Peter Dimov
66a8e8b3c1
get_deleter<> added.
...
[SVN r16365]
2002-11-21 14:46:45 +00:00
Peter Dimov
8283ec826b
Changed debug hook names, reverted weak_ptr() to have use_count of zero.
...
[SVN r16362]
2002-11-21 13:14:04 +00:00
Peter Dimov
e32b2adfda
Debug hook support, removed self-reset, fixed #%20links.
...
[SVN r16361]
2002-11-21 13:10:18 +00:00
Peter Dimov
e555d33695
Added array versions of the hooks.
...
[SVN r16346]
2002-11-20 16:18:13 +00:00
Peter Dimov
de68e6ed1e
A missing 'inline' added.
...
[SVN r16343]
2002-11-20 13:34:18 +00:00
Peter Dimov
804b1483c7
enable_shared_from_this-related fixes.
...
[SVN r16341]
2002-11-20 12:38:51 +00:00
Peter Dimov
4b200e9847
Borland fix (thanks to Fernando Cacciola)
...
[SVN r16331]
2002-11-19 18:21:32 +00:00
Peter Dimov
f34866e8a5
License added.
...
[SVN r16326]
2002-11-19 16:23:01 +00:00
Peter Dimov
45c799f40c
Debug hook support moved to shared_count.
...
[SVN r16325]
2002-11-19 16:18:58 +00:00
Peter Dimov
11a046f628
BOOST_ASSERTs added.
...
[SVN r16324]
2002-11-19 16:18:18 +00:00
Peter Dimov
b632f1ef20
Debug hooks, general cleanup.
...
[SVN r16323]
2002-11-19 16:11:21 +00:00
Peter Dimov
f6b7ff4b34
Major changes to shared_ptr and weak_ptr
...
[SVN r16314]
2002-11-18 14:37:02 +00:00
Peter Dimov
2314f20c4e
element_type added
...
[SVN r16264]
2002-11-15 19:44:48 +00:00
Peter Dimov
ff7410cad2
Fixed a subtle problem in counted_base::release (report and test case by Per Kristensen)
...
[SVN r16211]
2002-11-12 13:14:50 +00:00
Peter Dimov
57c0ad44f3
Changed typename to class; some libraries helpfully #define typename
...
[SVN r15970]
2002-10-23 13:55:18 +00:00
Peter Dimov
f2f616a95c
BOOST_SP_USE_STD_ALLOCATOR support
...
[SVN r15807]
2002-10-08 16:37:33 +00:00
Peter Dimov
4ea6decc7d
scoped_ptr::reset changed to copy+swap (problem reported by Thomas Witt)
...
[SVN r15239]
2002-09-09 17:44:33 +00:00
Peter Dimov
f79b8cb7ae
Tabs removed.
...
[SVN r15175]
2002-09-06 12:50:02 +00:00
Peter Dimov
b916445dd8
weak_ptr documentation updates; get() declared deprecated.
...
[SVN r15111]
2002-08-29 15:18:04 +00:00
Douglas Gregor
c02fee7013
*_ptr.hpp:
...
- Revert addition of is_pointerlike_helper
weak_ptr.hpp:
- Revert addition of get_pointer
[SVN r15108]
2002-08-29 13:49:05 +00:00
Douglas Gregor
e77889679f
intrusive_ptr.hpp:
...
scoped_ptr.hpp:
- include <boost/type_traits/ice.hpp>
[SVN r15104]
2002-08-27 13:33:22 +00:00