diff options
Diffstat (limited to 'boost/unordered/detail/fwd.hpp')
-rw-r--r-- | boost/unordered/detail/fwd.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/boost/unordered/detail/fwd.hpp b/boost/unordered/detail/fwd.hpp index 2e0c63073e..75030a9a28 100644 --- a/boost/unordered/detail/fwd.hpp +++ b/boost/unordered/detail/fwd.hpp @@ -32,8 +32,7 @@ #endif #endif -// TODO: Use piecewise construction by default? Is it safe to assume that an -// unknown library has it? +// Assume that an unknown library does not support piecewise construction. #if !defined(BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT) #define BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT 0 #endif @@ -43,17 +42,17 @@ #endif namespace boost { -namespace unordered { + namespace unordered { #if BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT -using std::piecewise_construct_t; -using std::piecewise_construct; + using std::piecewise_construct_t; + using std::piecewise_construct; #else -struct piecewise_construct_t -{ -}; -const piecewise_construct_t piecewise_construct = piecewise_construct_t(); + struct piecewise_construct_t + { + }; + const piecewise_construct_t piecewise_construct = piecewise_construct_t(); #endif -} + } } #endif |