From 71ef7850abe9f28469386d50c77dd8f742656c4c Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 13 Mar 2017 10:59:58 -0400 Subject: [PATCH 1/6] Add examples back to documentation --- include/boost/make_unique.hpp | 9 ++++----- make_shared_array.html | 34 +++++++++++++++++++++++++++++++--- make_unique.html | 14 +++++++++++--- 3 files changed, 46 insertions(+), 11 deletions(-) diff --git a/include/boost/make_unique.hpp b/include/boost/make_unique.hpp index 4dc82c3..7189d6e 100644 --- a/include/boost/make_unique.hpp +++ b/include/boost/make_unique.hpp @@ -1,10 +1,9 @@ /* -(c) 2014 Glen Joseph Fernandes - +Copyright 2014 Glen Joseph Fernandes +(glenjofe@gmail.com) -Distributed under the Boost Software -License, Version 1.0. -http://boost.org/LICENSE_1_0.txt +Distributed under the Boost Software License, Version 1.0. +(http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_MAKE_UNIQUE_HPP_INCLUDED #define BOOST_MAKE_UNIQUE_HPP_INCLUDED diff --git a/make_shared_array.html b/make_shared_array.html index 2deb798..d826266 100644 --- a/make_shared_array.html +++ b/make_shared_array.html @@ -105,8 +105,7 @@ const E& v);

Common Requirements

template<class T, class A>
shared_ptr<T> -allocate_shared(const A& a, -args);

+allocate_shared(const A& a, args);
Requires:
T is of the form E[N] or @@ -190,6 +189,9 @@ allocate_shared(const A& a, std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared<int[]>(std::allocator<int>(), 8);
@@ -202,6 +204,9 @@ allocate_shared(const A& a);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared<int[8]>(std::allocator<int>());
@@ -216,6 +221,9 @@ initialized to v.
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared<double[]>(std::allocator<double>(), 8, 1.0);
@@ -229,6 +237,9 @@ where each array element of type E is initialized to
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared<double[8]>(std::allocator<double>(), 1.0);
@@ -241,6 +252,9 @@ allocate_shared_noinit(const A& a, std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared_noinit<int[]>(std::allocator<int>(), 8);
@@ -253,6 +267,9 @@ allocate_shared_noinit(const A& a);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared_noinit<int[8]>(std::allocator<int>());
@@ -265,6 +282,8 @@ make_shared(std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared<int[]>(8);
@@ -277,6 +296,8 @@ make_shared();
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::make_shared<int[8]>();
@@ -289,6 +310,8 @@ make_shared(std::size_t n, const E& v);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared<double[]>(8, 1.0);
@@ -301,7 +324,8 @@ make_shared(const E& v);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
- +
Example:
+
boost::make_shared<double[8]>(1.0);

template<class T>
shared_ptr<T> @@ -313,6 +337,8 @@ make_shared_noinit(std::size_t n);

Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared_noinit<int[]>(8);
@@ -325,6 +351,8 @@ make_shared_noinit();
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::make_shared_noinit<int[8]>();
diff --git a/make_unique.html b/make_unique.html index 7500a87..fdd5fd9 100644 --- a/make_unique.html +++ b/make_unique.html @@ -58,8 +58,7 @@ function template make_unique for convenient creation of

Common Requirements

template<class T, Args>
-std::unique_ptr<T> -make_unique(args);

+std::unique_ptr<T> make_unique(args);
Effects:
Allocates storage for an object of type T (or @@ -109,6 +108,8 @@ initialized to std::forward<Args>(args)....
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
+
Example:
+
boost::make_unique<double>(1.0);
@@ -121,7 +122,8 @@ initialized to std::move(value).
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
- +
Example:
+
boost::make_unique<point>({1.0, -1.0});

template<class T>
std::unique_ptr<T> @@ -133,6 +135,8 @@ make_unique(std::size_t size);

Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_unique<int[]>(8);
@@ -145,6 +149,8 @@ type T.
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
+
Example:
+
boost::make_unique_noinit<std::tm>();
@@ -157,6 +163,8 @@ type E[size].
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_unique_noinit<char[]>(64);
From b4abcdb016ba1b6627ab57f84090346d7d8dcbae Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Mar 2017 18:29:04 +0200 Subject: [PATCH 2/6] Try to obtain bootstrap.log from Appveyor --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 9b4944a..555b369 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,7 +32,7 @@ install: - git submodule init tools/build - git submodule update - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\smart_ptr - - bootstrap + - bootstrap || appveyor PushArtifact bootstrap.log & color 00 - b2 headers build: off From f45dd4d9550f601d516f0cb022917a0ad1e6c184 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Mar 2017 18:36:52 +0200 Subject: [PATCH 3/6] Second try to obtain bootstrap.log from Appveyor --- appveyor.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 555b369..dc12413 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,10 +32,13 @@ install: - git submodule init tools/build - git submodule update - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\smart_ptr - - bootstrap || appveyor PushArtifact bootstrap.log & color 00 + - bootstrap - b2 headers build: off test_script: - b2 libs/smart_ptr/test toolset=msvc-9.0,msvc-10.0,msvc-11.0,msvc-14.0 + +artifacts: + - path: bootstrap.log From 994f39f9b0e012ad626397e48b02834eb101bef0 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Mar 2017 18:47:38 +0200 Subject: [PATCH 4/6] Third try to obtain bootstrap.log from Appveyor --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index dc12413..4d9d46a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,4 +41,4 @@ test_script: - b2 libs/smart_ptr/test toolset=msvc-9.0,msvc-10.0,msvc-11.0,msvc-14.0 artifacts: - - path: bootstrap.log + - path: ..\boost-root\bootstrap.log From 83d3f07b0d7602c586f32a6dbedc4a70b23ea9bc Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Mar 2017 19:02:57 +0200 Subject: [PATCH 5/6] Fourth try to obtain bootstrap.log from Appveyor --- appveyor.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4d9d46a..1857fe9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,13 +32,10 @@ install: - git submodule init tools/build - git submodule update - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\smart_ptr - - bootstrap + - cmd /d /c bootstrap || type bootstrap.log & color 00 - b2 headers build: off test_script: - b2 libs/smart_ptr/test toolset=msvc-9.0,msvc-10.0,msvc-11.0,msvc-14.0 - -artifacts: - - path: ..\boost-root\bootstrap.log From d7ad42724d927f57cb11a6a488efa95a2db4120a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Mar 2017 19:42:39 +0200 Subject: [PATCH 6/6] Revert Appveyor changes. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 1857fe9..9b4944a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,7 +32,7 @@ install: - git submodule init tools/build - git submodule update - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\smart_ptr - - cmd /d /c bootstrap || type bootstrap.log & color 00 + - bootstrap - b2 headers build: off