1
0
forked from boostorg/move

18 Commits

Author SHA1 Message Date
Ion Gaztañaga
7df81354d5 Avoid warning "conversions to arrays of unknown bound are only available with -std=c++2a..." when using -pedantic for GCC >= 10 2020-10-20 11:29:16 +02:00
Ion Gaztañaga
ab98479759 Introduce BOOST_MOVE_FORCELINE, disabled by default, so that we can start speeding up debug builds that use Boost.Move 2015-12-24 10:39:57 +01:00
Ion Gaztañaga
bd9532a6a4 Documentation fixes:
- core.hpp: hide non-public macros
- default_delete.hpp: Hide detail code
- unique_ptr.hpp: Likewise
- utility_core.hpp: Document move_if_not_lvalue_reference
2015-09-13 21:50:34 +02:00
Ion Gaztañaga
b88cfcaf84 Fixed Trac #11510 ("unique_ptr: -Wshadow warning issued") 2015-07-31 21:54:35 +02:00
Ion Gaztañaga
4a44ed3d26 Modify unique_ptr's constructor from convertible unique_ptr's to take the argument by value. This allows constructing unique_ptr from functions returning convertible unique_ptr's. See https://svn.boost.org/trac/boost/ticket/11259 for some details. 2015-05-06 12:32:11 +02:00
Ion Gaztañaga
d61685461c Include boost/config.hpp before testing BOOST_HAS_PRAGMA_ONCE. 2015-02-02 15:58:29 +01:00
Ion Gaztañaga
35a8b69c94 Replaced _MSC_VER with BOOST_HAS_PRAGMA_ONCE before #pragma once. 2015-01-10 12:49:25 +01:00
Ion Gaztañaga
cbda10ecdd Added adl_move_swap utility 2014-11-26 19:27:40 +01:00
Ion Gaztañaga
8355309c5f Added #pragma once 2014-11-01 19:28:24 +01:00
Ion Gaztañaga
291a95c30a Reduced unused classes from meta_utiles and simplified the implementation of several traits classes to avoid inheritance from integral_constant
Moved declval to utility_core.hpp
2014-09-22 00:15:30 +02:00
Ion Gaztañaga
3075014f2d Added check for types with no virtual destructor when using default_delete and non-array types 2014-09-04 00:15:56 +02:00
Ion Gaztañaga
90be9ebe22 Extracted default_delete into its own header.
Extracted meta utilities used only by unique_ptr and friends to its own "unique_ptr_meta_utils.hpp" header.
2014-09-02 16:28:17 +02:00
Ion Gaztañaga
19d35253cf Added support for bounded arrays in unique_ptr. Splitted test in several subtests. 2014-09-01 23:59:10 +02:00
Ion Gaztañaga
085a814cf2 Added missing typenames 2014-08-29 11:29:26 +02:00
Ion Gaztañaga
738e360f40 Improved move-only deleters in C++03, now they can be caught as rvalues. 2014-08-29 10:28:09 +02:00
Ion Gaztañaga
364ee17476 Simplified and improved unique_ptr implementation:
- No array specialization to avoid code duplication
- Constructible and assignable from literal zero
2014-08-27 23:21:36 +02:00
Ion Gaztañaga
a9bc0876cd Added missing cstddef for std::nullptr_t 2014-08-23 00:32:30 +02:00
Ion Gaztañaga
e1da7c5ca1 Added class unique_ptr under boost::movelib namespace. This could be lifted to ::boost namespace if the community agrees.
This unique_ptr implementation is based on C++14, including make_unique functions. Large parte of the testsuite is based on Howard Hinnant's unique_ptr emulation testsuite.
2014-08-22 18:34:34 +02:00