From 5ffce48fa1468491e169ae4e3205c9cd6ffed679 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 6 May 2019 21:45:55 -0400 Subject: [PATCH] Correct example in documentation --- doc/alloc_construct.qbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/alloc_construct.qbk b/doc/alloc_construct.qbk index 9cf2c4f..0874712 100644 --- a/doc/alloc_construct.qbk +++ b/doc/alloc_construct.qbk @@ -6,7 +6,7 @@ Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) ] -[section:alloc_construct alloc_construct] +[section:alloc_construct alloc_construct, alloc_destroy] [simplesect Authors] @@ -38,7 +38,7 @@ auto create(A& a, std::size_t n) try { boost::alloc_construct_n(a, boost::to_address(p), n); } catch (...) { - a.deallocate(n); + a.deallocate(p, n); throw; } return p;