diff --git a/doc/noinit_adaptor.qbk b/doc/noinit_adaptor.qbk index 585508a..f322973 100644 --- a/doc/noinit_adaptor.qbk +++ b/doc/noinit_adaptor.qbk @@ -81,6 +81,9 @@ template bool operator!=(const noinit_adaptor& lhs, const noinit_adaptor& rhs) noexcept; +template +noinit_adaptor noinit_adapt(const A& a) noexcept; + } /* boost */ ``` diff --git a/include/boost/core/noinit_adaptor.hpp b/include/boost/core/noinit_adaptor.hpp index eb92102..26fa7c3 100644 --- a/include/boost/core/noinit_adaptor.hpp +++ b/include/boost/core/noinit_adaptor.hpp @@ -9,9 +9,13 @@ Distributed under the Boost Software License, Version 1.0. #define BOOST_CORE_NOINIT_ADAPTOR_HPP #include +#if !defined(BOOST_NO_CXX11_ALLOCATOR) #include +#endif #include +#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #include +#endif namespace boost { diff --git a/test/noinit_adaptor_test.cpp b/test/noinit_adaptor_test.cpp index 7965410..8af2f5b 100644 --- a/test/noinit_adaptor_test.cpp +++ b/test/noinit_adaptor_test.cpp @@ -6,8 +6,8 @@ Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #include -#include #include +#include #include template