1 // Copyright David Abrahams, Daniel Wallin 2003.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_PARAMETER_AUX_PACK_UNMATCHED_ARGUMENT_HPP
7 #define BOOST_PARAMETER_AUX_PACK_UNMATCHED_ARGUMENT_HPP
9 #include <boost/parameter/config.hpp>
11 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
12 #include <type_traits>
14 #include <boost/mpl/bool.hpp>
15 #include <boost/mpl/if.hpp>
16 #include <boost/mpl/assert.hpp>
17 #include <boost/type_traits/is_same.hpp>
20 namespace boost { namespace parameter { namespace aux {
23 struct unmatched_argument
25 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
26 static_assert(::std::is_same<T,void>::value, "T == void");
29 typename ::boost::mpl::if_<
30 ::boost::is_same<T,void>
32 , ::boost::mpl::false_
38 }}} // namespace boost::parameter::aux
40 #endif // include guard