summaryrefslogtreecommitdiff
path: root/boost/container/pmr
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:11:01 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:11:01 +0900
commit3fdc3e5ee96dca5b11d1694975a65200787eab86 (patch)
tree5c1733853892b8397d67706fa453a9bd978d2102 /boost/container/pmr
parent88e602c57797660ebe0f9e15dbd64c1ff16dead3 (diff)
downloadboost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.gz
boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.bz2
boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.zip
Imported Upstream version 1.66.0upstream/1.66.0
Diffstat (limited to 'boost/container/pmr')
-rw-r--r--boost/container/pmr/polymorphic_allocator.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/container/pmr/polymorphic_allocator.hpp b/boost/container/pmr/polymorphic_allocator.hpp
index d189b3a311..c446bc8d5b 100644
--- a/boost/container/pmr/polymorphic_allocator.hpp
+++ b/boost/container/pmr/polymorphic_allocator.hpp
@@ -92,12 +92,12 @@ class polymorphic_allocator
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
//! <b>Requires</b>: Uses-allocator construction of T with allocator
- //! `this->resource()` and constructor arguments `std::forward<Args>(args)...`
+ //! `*this` and constructor arguments `std::forward<Args>(args)...`
//! is well-formed. [Note: uses-allocator construction is always well formed for
//! types that do not use allocators. - end note]
//!
//! <b>Effects</b>: Construct a T object at p by uses-allocator construction with allocator
- //! `this->resource()` and constructor arguments `std::forward<Args>(args)...`.
+ //! `*this` and constructor arguments `std::forward<Args>(args)...`.
//!
//! <b>Throws</b>: Nothing unless the constructor for T throws.
template < typename U, class ...Args>
@@ -105,7 +105,7 @@ class polymorphic_allocator
{
new_allocator<U> na;
container_detail::dispatch_uses_allocator
- (na, this->resource(), p, ::boost::forward<Args>(args)...);
+ (na, *this, p, ::boost::forward<Args>(args)...);
}
#else // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
@@ -118,7 +118,7 @@ class polymorphic_allocator
{\
new_allocator<U> na;\
container_detail::dispatch_uses_allocator\
- (na, this->resource(), p BOOST_MOVE_I##N BOOST_MOVE_FWDQ##N);\
+ (na, *this, p BOOST_MOVE_I##N BOOST_MOVE_FWDQ##N);\
}\
//
BOOST_MOVE_ITERATE_0TO9(BOOST_CONTAINER_PMR_POLYMORPHIC_ALLOCATOR_CONSTRUCT_CODE)