Avoid warnings of unused "piecewise_construct"

This commit is contained in:
Ion Gaztañaga
2016-11-12 19:06:44 +01:00
parent d7bf947a4b
commit 0a719901b6

View File

@@ -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 <class T1, class T2>
struct pair;
@@ -130,6 +139,8 @@ struct pair_nat;
template<typename T, typename U, typename V>
void get(T); //to enable ADL
///@endcond
template <class T1, class T2>
struct pair
{