diff --git a/include/boost/range/adaptor/indexed.hpp b/include/boost/range/adaptor/indexed.hpp index a426bd6..8fd0289 100644 --- a/include/boost/range/adaptor/indexed.hpp +++ b/include/boost/range/adaptor/indexed.hpp @@ -367,4 +367,29 @@ index( } // namespace adaptors } // namespace boost +#if !defined(BOOST_NO_CXX11_HDR_TUPLE) + +namespace std { + +#if defined(BOOST_CLANG) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmismatched-tags" +#endif + +template +struct tuple_element>: + boost::tuples::element> {}; + +template +struct tuple_size>: + std::integral_constant {}; + +#if defined(BOOST_CLANG) +#pragma clang diagnostic pop +#endif + +} // namespace std + +#endif // !defined(BOOST_NO_CXX11_HDR_TUPLE) + #endif // include guard