1 // Copyright David Abrahams 2005. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP
5 # define BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP
7 # include <boost/utility/result_of.hpp>
9 // A metafunction returning the result of invoking a nullary function
10 // object of the given type.
12 #ifndef BOOST_NO_RESULT_OF
14 # include <boost/utility/result_of.hpp>
15 namespace boost { namespace parameter { namespace aux {
17 struct result_of0 : result_of<F()>
20 }}} // namespace boost::parameter::aux_
24 namespace boost { namespace parameter { namespace aux {
28 typedef typename F::result_type type;
31 }}} // namespace boost::parameter::aux_
36 #endif // BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP