summaryrefslogtreecommitdiff
path: root/boost/type_erasure/detail/vtable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/type_erasure/detail/vtable.hpp')
-rw-r--r--boost/type_erasure/detail/vtable.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/boost/type_erasure/detail/vtable.hpp b/boost/type_erasure/detail/vtable.hpp
index b30a15a061..965ffcb390 100644
--- a/boost/type_erasure/detail/vtable.hpp
+++ b/boost/type_erasure/detail/vtable.hpp
@@ -17,6 +17,7 @@
#include <boost/mpl/at.hpp>
#include <boost/mpl/size.hpp>
#include <boost/preprocessor/cat.hpp>
+#include <boost/preprocessor/expr_if.hpp>
#include <boost/preprocessor/iteration/iterate.hpp>
#include <boost/preprocessor/repetition/enum.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
@@ -98,7 +99,7 @@ struct compare_vtable;
template<>
struct compare_vtable<> {
template<class S>
- static bool apply(const S& s1, const S& s2)
+ static bool apply(const S& /*s1*/, const S& /*s2*/)
{
return true;
}
@@ -151,9 +152,9 @@ struct vtable_storage<>
vtable_storage() = default;
template<class Bindings, class Src>
- void convert_from(const Src& src) {}
+ void convert_from(const Src& /*src*/) {}
- bool operator==(const vtable_storage& other) const
+ bool operator==(const vtable_storage& /*other*/) const
{ return true; }
};
@@ -249,12 +250,12 @@ struct BOOST_PP_CAT(vtable_storage, N)
BOOST_PP_REPEAT(N, BOOST_TYPE_ERASURE_VTABLE_ENTRY, ~)
template<class Bindings, class Src>
- void convert_from(const Src& src)
+ void convert_from(const Src& BOOST_PP_EXPR_IF(N, src))
{
BOOST_PP_REPEAT(N, BOOST_TYPE_ERASURE_CONVERT_ELEMENT, ~)
}
- bool operator==(const BOOST_PP_CAT(vtable_storage, N)& other) const
+ bool operator==(const BOOST_PP_CAT(vtable_storage, N)& BOOST_PP_EXPR_IF(N, other)) const
{ return true BOOST_PP_REPEAT(N, BOOST_TYPE_ERASURE_VTABLE_COMPARE, ~); }
};