Peter Dimov
79e6fcdd61
Remove comment; C++11 does not guarantee this static init
2017-06-18 05:00:42 +03:00
Peter Dimov
4341446e04
#ifdef constexpr tests on msvc and clang c++11
2017-06-18 04:21:22 +03:00
Peter Dimov
0e78e219f5
Make default constructors constexpr
2017-06-18 02:43:20 +03:00
Peter Dimov
b8390aeffb
Add more tests
2017-06-17 21:24:07 +03:00
Peter Dimov
7d51c868eb
Add more tests
2017-06-17 01:34:58 +03:00
Peter Dimov
7484d4da41
Merge branch 'develop' into feature/local_shared_ptr
2017-06-16 18:40:01 +03:00
Peter Dimov
a7668291d2
Add atomic_shared_ptr
2017-06-16 18:26:17 +03:00
Peter Dimov
4dda1b5fbb
Add lsp_array_* tests
2017-06-13 18:03:01 +03:00
Peter Dimov
1d314c5668
Make null unique_ptr convert to empty shared_ptr
2017-06-13 05:50:40 +03:00
Peter Dimov
8f2e6d04de
Add more tests
2017-06-12 00:19:07 +03:00
Peter Dimov
8d9c4df71a
Add more tests
2017-06-11 20:35:51 +03:00
Peter Dimov
b18f68324f
Add more tests
2017-06-05 16:38:41 +03:00
Peter Dimov
aeadd6aeff
Initial commit of local_shared_ptr
2017-06-04 21:24:20 +03:00
Glen Fernandes
33b18c7da0
Reformat (line wrap at 80 characters)
2017-05-02 08:12:25 -04:00
Peter Dimov
acb29ad6f3
Add lwm_win32_cs_test
2017-04-16 21:02:07 +03:00
Glen Fernandes
650537da60
Update unit tests for make_unique
2017-03-06 08:36:57 -05:00
Glen Fernandes
324347b9ec
Update unit tests for shared array functions
2017-03-06 01:18:16 -05: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
ebd1788f2c
Add test for rvalue reinterpret_pointer_cast.
2016-12-11 21:18:18 -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
61075bb9df
Move extra files to extras/ as the src/ and test/ directories are scanned for dependencies
2016-11-10 15:04:21 +02: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
a7fbb0a841
Do not use components removed in C++17 (auto_ptr, binary_function)
2016-11-06 15:35:46 +02:00
Peter Dimov
94a04e57fb
Merge branch 'develop' into feature/unique_ptr_casts
2016-09-10 20:28:14 +03:00
Peter Dimov
5595622c3e
Relax dynamic_cast check; rephrase const_cast test to be more MSVC-friendly.
2016-09-10 20:18:37 +03:00
Peter Dimov
2ae3e4ba44
Remove static_pointer_cast restriction; test dynamic cross cast.
2016-09-10 20:07:47 +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
ce52fb1045
pointer_casts with move semantics for unique_ptr
2016-06-06 16:08:26 +02:00
Karolin Varner
6b787f1cec
Add overloads for std::shared_ptr to pointer casts
2016-06-06 14:51:44 +02:00
Karolin Varner
6d5f554baa
Reuse code for plain and shared in ptr cast tests
2016-06-05 23:32:45 +02:00
Peter Dimov
e52905cf3c
Add intrusive_ptr converting move assignment.
2016-05-17 18:43:41 +03:00
Peter Dimov
b7f99ceba6
Update intrusive_ptr_move_test with converting move construction.
2016-05-17 18:36:50 +03:00
Peter Dimov
522f6c1869
Add more aliasing move test cases, add alias move reset
2016-04-13 14:31:43 +03: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
Glen Fernandes
7a7ac4512e
Fix formatting in headers and tests
2015-11-11 01:26:15 -05:00
Glen Fernandes
38b6334e36
Update unit tests for make_shared/allocate_shared for arrays
...
Before pending refactor of make_shared and allocate_shared for arrays.
2015-11-09 22:35:34 -05:00
Glen Fernandes
7af503d3bb
Refactor make_unique implementations
...
Before the pending refactor of make_shared/allocate_shared for arrays.
2015-11-08 11:02:06 -05: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
e067fd2cfd
Fix comment.
2015-01-28 13:03:23 +02: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