From 0a719901b64fd709c049d2d58ab5839d36186914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 12 Nov 2016 19:06:44 +0100 Subject: [PATCH] Avoid warnings of unused "piecewise_construct" --- include/boost/container/detail/pair.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/boost/container/detail/pair.hpp b/include/boost/container/detail/pair.hpp index 096f795..cad6f09 100644 --- a/include/boost/container/detail/pair.hpp +++ b/include/boost/container/detail/pair.hpp @@ -84,8 +84,17 @@ typedef unspecified piecewise_construct_t; //! piecewise_construct_t static piecewise_construct_t piecewise_construct = BOOST_CONTAINER_DOC1ST(unspecified, *std_piecewise_construct_holder<>::dummy); +///@cond + namespace container_detail { +struct piecewise_construct_use +{ + //Avoid warnings of unused "piecewise_construct" + piecewise_construct_use() + { (void)&::boost::container::piecewise_construct; } +}; + template struct pair; @@ -130,6 +139,8 @@ struct pair_nat; template void get(T); //to enable ADL +///@endcond + template struct pair {