Commit Graph

1447 Commits

Author SHA1 Message Date
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
Peter Dimov
cb0797acf0 Merged revision(s) 81149, 81159, 81171, 81174, 81219-81220, 81222-81224, 81226, 81229-81239, 81242, 81253, 81257-81262, 81265-81268, 81271-81272, 81275-81277, 81299-81300 from trunk:
Implement shared_ptr<X[]>, weak_ptr<X[]>. Refs #1113.
........
Fix shared_ptr<T[]> EDG issues.
........
Disable make_shared<T> overloads when T is Q[].
........
Add catch(...) clauses to sp_array_test.cpp.
........
Add allocate_shared and make_shared for shared_ptr arrays of runtime size. Fulfills need for allocate_shared_array and make_shared_array. 
........
Update Jamfile.v2 to run make_shared array tests and allocate_shared array tests.
........
Fix g++ issues.
........
Add specialization of sp_if_not_array<T[N]>.
........
Rename make_shared.hpp to make_shared_object.hpp, include from make_shared.hpp.
........
Add make_shared_array_args_test.cpp.
........
Add support for make_shared of array of arrays. Correctly destroy elements and construct elements for the variadic template constructor variants.
........
Fix sp_convertible<T const[], T const[]>.
........
Update smart_ptr/detail/array_helper to have create and create_noinit for non-array case.
........
Rename sp_convertible_test.cpp to shared_ptr_convertible_test.cpp.
........
Don't treat array_helper create and create_noinit for array types as a special case.
........
Add sp_convertible_test.cpp.
........
Fix array_helper (create_noinit and use of args...).
........
Update allocate_shared and make_shared to treat multidimensional array as single dimension. Remove detail array_helper. Add detail array traits. Update tests. 
........
Simplify array_deleter interface
........
Add missing semicolon.
........
Fix typo.
........
Add tests for variadic template constructors overload of array forms of make_shared and allocate_shared for multidimensional arrays and up to 9 constructor arguments.
........
Add support for shared_ptr<X[N>.
........
Add C++11 initializer list support for make_shared and allocate_shared array forms.

........
Clean up code in allocate_shared_array.hpp and make_shared_array.hpp
........
Change make_shared and allocate_shared array form semantics with initializer lists overload that takes no size.
........
Disable make_shared for arrays when the compiler doesn't support partial specialization or SFINAE.
........
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.
........
Actually remove test cases from make_shared_array_create_test.cpp and allocate_shared_array_create_test.cpp that g++ does not handle.
........
Add overloads to support fixed size arrays, T[N], to allocate_shared (variadic) and make_shared (variadic) and make_shared_noinit.
........
Add additional overload for make_shared and allocate_shared for arrays for fixed size arrays and initializer lists.
........
Add assertion to overload of make_shared and allocate_shared for T[N] with initializer lists. Rename detail type to be more intuitive.
........
Add allocate_shared_array_args_test.cpp.
........
Keep old definition of sp_assert_convertible when BOOST_SP_NO_SP_CONVERTIBLE is set.
........
Updated shared_array to match shared_ptr. Refs #1113.
........
Add final overload of make_shared and allocate_shared (array forms) for T[][N] with C++11 initializer lists.
........
Change traits for initializer list for g++
........
Tidy long line formatting in allocate_shared_array.hpp and make_shared_array.hpp
........
Update tests for make_shared and allocate_shared array forms, for normal case, initializer lists, variadic template arguments, for arrays and fixed size arrays.
........
Update Jamfile.v2 with two new smart_ptr tests for allocate_shared and make_shared
........


[SVN r81339]
2012-11-14 13:52:11 +00:00
Peter Dimov
e8103f9774 Merge from 57197, 57206, 57423, 57518 did not apply to 'libs' for some reason; update.
[SVN r81338]
2012-11-14 13:36:44 +00:00
Peter Dimov
71eb435412 Merged revision(s) 57197, 57206, 57423, 57518 from trunk:
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).


........
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.

........
Added weak_from_raw(), for use in conjunction with
enable_shared_from_raw base class.


........
Fixed access to enable_shared_from_raw::weak_this_ when 
BOOST_NO_MEMBER_TEMPLATE_FRIENDS is defined.


........


[SVN r81337]
2012-11-14 13:26:30 +00:00
Peter Dimov
4a2dad1574 Merged [81134] from trunk. Fixes #6308. Refs #6667.
[SVN r81336]
2012-11-14 12:09:30 +00:00
Peter Dimov
babc72757d Merged [81131] from trunk. Fixes #6625.
[SVN r81335]
2012-11-14 12:04:48 +00:00
Peter Dimov
c19cbc1892 Merged [81128] from trunk. Fixes #7141.
[SVN r81334]
2012-11-14 11:57:58 +00:00
Peter Dimov
d065e4d971 Merged [81127] from trunk. Fixes #6901.
[SVN r81333]
2012-11-14 11:55:10 +00:00
Peter Dimov
777b86a661 Merged [81126] from trunk. Fixes #6996.
[SVN r81332]
2012-11-14 11:53:05 +00:00
Peter Dimov
aae5440854 Merged [80988] from trunk.
[SVN r81331]
2012-11-14 11:51:00 +00:00
Peter Dimov
227d2e3255 Manually apply [69019] from trunk.
[SVN r81330]
2012-11-14 11:43:17 +00:00
Peter Dimov
8bf183b373 Merged [81125] from trunk. Fixes #4185.
[SVN r81329]
2012-11-14 11:20:29 +00:00
Peter Dimov
5017da2514 Merged [81119] from trunk. Fixes #7599.
[SVN r81328]
2012-11-14 11:17:48 +00:00
Glen Fernandes
3b0b10d06d Update Jamfile.v2 with two new smart_ptr tests for allocate_shared and make_shared
[SVN r81300]
2012-11-11 19:21:18 +00:00
Glen Fernandes
25e11b20d3 Update tests for make_shared and allocate_shared array forms, for normal case, initializer lists, variadic template arguments, for arrays and fixed size arrays.
[SVN r81299]
2012-11-11 19:14: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
Peter Dimov
58a46f4e55 Add allocate_shared_array_args_test.cpp.
[SVN r81268]
2012-11-09 18:26:40 +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
c1f41aa925 Actually remove test cases from make_shared_array_create_test.cpp and allocate_shared_array_create_test.cpp that g++ does not handle.
[SVN r81262]
2012-11-09 16:35:18 +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
Glen Fernandes
c57245d710 Add tests for variadic template constructors overload of array forms of make_shared and allocate_shared for multidimensional arrays and up to 9 constructor arguments.
[SVN r81242]
2012-11-08 05:33:52 +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
Peter Dimov
e50c849ab3 Add sp_convertible_test.cpp.
[SVN r81234]
2012-11-07 15:33:44 +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
Peter Dimov
c06ba497a3 Rename sp_convertible_test.cpp to shared_ptr_convertible_test.cpp.
[SVN r81232]
2012-11-07 15:07:08 +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
6e873de0fa Add make_shared_array_args_test.cpp.
[SVN r81226]
2012-11-06 17:31:15 +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
e7d3987cfb Update Jamfile.v2 to run make_shared array tests and allocate_shared array tests.
[SVN r81220]
2012-11-06 14:35:40 +00:00