forked from boostorg/core
Use non-const references in ignore_unused to avoid g++-11 warning
This commit is contained in:
@ -11,12 +11,22 @@
|
|||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
|
|
||||||
|
template <typename... Ts>
|
||||||
|
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused(Ts&& ...)
|
||||||
|
{}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused(Ts const& ...)
|
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused(Ts const& ...)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused()
|
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused()
|
||||||
{}
|
{}
|
||||||
|
Reference in New Issue
Block a user