Peter Dimov
aeadd6aeff
Initial commit of local_shared_ptr
2017-06-04 21:24:20 +03:00
Peter Dimov
acb29ad6f3
Add lwm_win32_cs_test
2017-04-16 21:02:07 +03:00
Glen Fernandes
7570340d70
Add test for allocator construct usage
2017-03-01 13:03:14 -05:00
Peter Dimov
f8524c42a8
Add test for a MSVC parsing problem in make_shared
2017-03-01 12:02:30 +02:00
Peter Dimov
19147212a9
Merge pull request #29 from cdglove/rvalue_casts
...
Add rvalue versions of static_pointer_cast, const_pointer_cast, dynamic_pointer_cast, reinterpret_pointer_cast.
2016-12-12 05:45:17 +02:00
Chris Glover
9e568dad6e
Add explicit tests for reinterpret_pointer_cast. Based on existing pointer_cast tests in shared_ptr_test.cpp
2016-12-11 22:18:57 -05:00
Chris Glover
3e2ac10e94
Add rvalue versions of static_pointer_cast, const_pointer_cast, dynamic_pointer_cast, reinterpret_pointer_cast.
...
Aligns with proposed addition to std:: here: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0390r0.htm
2016-12-11 15:38:34 -05:00
Peter Dimov
3e61a63f60
Use throw() in place of noexcept on msvc-11.0,12.0 for the standard nothrow traits
2016-11-08 18:42:51 +02:00
Peter Dimov
94a04e57fb
Merge branch 'develop' into feature/unique_ptr_casts
2016-09-10 20:28:14 +03:00
Giel van Schijndel
b5498d944e
Add test for make_shared's move-emulation support
...
This tests the functionality added with PR boostorg/smart_ptr#24 .
Specifically this tests that passing moveable-only types to
constructors is possible through make_shared. Note that real rvalue's
still cannot be passed that way on C++03 unfortunately because there's
no generic way of accomplishing that with current move emulation.
2016-09-10 18:38:37 +02:00
Peter Dimov
8fac3c9f2f
Add one more dynamic_cast test, fold back _test3 into test2.
2016-09-10 19:15:47 +03:00
Peter Dimov
a14515a364
Add negative pointer cast tests.
2016-09-10 18:43:22 +03:00
Peter Dimov
190c06e25d
Add tests for unique_ptr casts.
2016-09-10 17:55:14 +03:00
Karolin Varner
6b787f1cec
Add overloads for std::shared_ptr to pointer casts
2016-06-06 14:51:44 +02:00
Peter Dimov
cd8de9d4a6
Merge branch 'move-alias' of https://github.com/uecasm/smart_ptr into develop
2016-04-13 13:29:50 +03:00
Peter Dimov
4473bf8ec2
Fix hash support for shared_ptr<T[]>, <T[N]>
2015-12-15 19:13:20 +02:00
Gavin Lambert
05d5a4e9a0
Added shared_ptr aliasing move constructor.
...
Signed-off-by: Gavin Lambert <github@mirality.co.nz >
2015-10-12 18:19:22 +13:00
Peter Dimov
d875a68ceb
Add constructor/assignment taking boost::movelib::unique_ptr
2015-05-04 01:06:42 +03:00
Peter Dimov
711c36958a
Add an additional weak_from_raw test.
2015-01-28 12:52:10 +02:00
Peter Dimov
7104e7dc7e
Add weak_from_this.
2015-01-25 20:10:57 +02:00
Peter Dimov
3fd53ced83
Make shared_from_raw and weak_from_raw return consistent values in a constructor, regardless of order, as suggested by Gavin Lambert in #8 .
2015-01-22 20:47:01 +02:00
Peter Dimov
f65c57d9d2
Fix explicit instantiation regression
2014-11-12 19:04:29 +02:00
Peter Dimov
2a56c73924
Add weak_from_raw_test2.cpp.
2014-08-09 13:50:38 +03:00
Peter Dimov
720ce12a25
Add shared_from_raw_test6.cpp.
2014-08-09 13:42:51 +03:00
Peter Dimov
6b562cb5b1
Rename enable_shared_from_raw_test.cpp to weak_from_raw_test.cpp.
2014-08-08 21:28:15 +03:00
Peter Dimov
3d2c230623
Rename esft_constructor_test.cpp to shared_from_raw_test5.cpp.
2014-08-08 21:24:20 +03:00
Peter Dimov
bd4f9c239a
Add shared_from_raw tests.
2014-08-06 21:07:52 +03:00
Peter Dimov
c003fba3a0
Renamed, cleaned up interlocked.hpp; added test
2014-02-12 20:48:35 +02:00
Peter Dimov
9f5822f427
Add support and test for C++11 construct/destroy in allocate_shared
2014-02-05 02:31:33 +02:00
Peter Dimov
975d04ac62
Merge Jamfile.v2 on git's insistence
2014-02-05 00:29:18 +02:00
Peter Dimov
90e74511f7
Add support and tests for C++11 minimal allocators
2014-02-05 00:17:34 +02:00
Glen Fernandes
72e5fb6fd7
Add fourth form of make_unique for objects
...
To support initialization syntax that Args&&... cannot forward perfectly.
2014-01-29 17:16:01 -08:00
Glen Fernandes
7806737b52
Add make_unique for arrays and objects
2014-01-28 03:58:51 -08:00
Glen Fernandes
630e4f49f3
Update make_shared for arrays to conform to N3870
...
Update make_shared and allocate_shared for arrays to be confined to the
set of overloads specified in N3870.
2014-01-23 20:40:46 -08:00
Peter Dimov
a41b81f1c8
Added shared_array constructor from nullptr, per #8894 .
2013-12-12 01:22:51 +02:00
Andrey Semashev
a7d96b4762
Extracted intrusive_ref_counter from Boost.Log. The extracted version supports customizing the reference counter nature, two policies provided: thread_unsafe_counter and thread_safe_counter.
...
[SVN r85535]
2013-08-31 19:54:11 +00:00
Glen Fernandes
66f34142be
Fix cxxflags in smart_ptr/test/Jamfile.v2
...
[SVN r82070]
2012-12-18 09:24:31 +00:00
Glen Fernandes
63834f7233
Specify gcc-4.6 instead of gcc-4.6.3 for toolset
...
[SVN r82038]
2012-12-16 23:03:30 +00:00
Glen Fernandes
bb700870c0
Specify <cxxflags>-fno-deduce-init-list for gcc-4.6.3 only.
...
[SVN r81950]
2012-12-14 20:05:03 +00:00
Glen Fernandes
e36689bd5e
Correct call to init_list in make_shared and allocate_shared. Move g++ failing case into separate test to not mask other issues.
...
[SVN r81905]
2012-12-13 18:02:25 +00:00
Glen Fernandes
bbf0245248
Remove -fno-deduce-init-list for certain tests in Jamfile.v2
...
[SVN r81894]
2012-12-13 12:21:44 +00:00
Glen Fernandes
4ba8d879f1
Use BOOST_NO_CXX11_RVALUE_REFERENCES and BOOST_NO_CXX11_VARIADIC_TEMPLATES instead of the legacy macros. Rename identifiers of detail utility functions.
...
[SVN r81886]
2012-12-13 04:04:23 +00:00
Peter Dimov
8093967da7
Use explicit operator bool when available; add nullptr support to shared_ptr. Refs #4116 .
...
[SVN r81780]
2012-12-08 00:51:59 +00:00
Peter Dimov
97d32745aa
Update shared_ptr casts.
...
[SVN r81463]
2012-11-21 17:43: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
Peter Dimov
58a46f4e55
Add allocate_shared_array_args_test.cpp.
...
[SVN r81268]
2012-11-09 18:26:40 +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
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
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