Commit Graph

8 Commits

Author SHA1 Message Date
Ion Gaztañaga
122916d820 Removed tabs. 2016-03-23 22:11:25 +01:00
Ion Gaztañaga
c4faf26527 Make memcpy volatile to make sure bytes are copied and not optimized out by the compiler. 2015-12-24 10:39:24 +01: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
e43819d1d2 Added nothrow variants to unique_ptr 2014-10-10 22:03:47 +02:00
Ion Gaztañaga
76ab7093ae Removed warnings in GCC 4.8 -Wall -pedantic 2014-09-25 16:45:22 +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
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
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