Chris@16: // Copyright David Abrahams 2005. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP Chris@16: # define BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP Chris@16: Chris@16: # include Chris@16: Chris@16: // A metafunction returning the result of invoking a nullary function Chris@16: // object of the given type. Chris@16: Chris@16: #ifndef BOOST_NO_RESULT_OF Chris@16: Chris@16: # include Chris@16: namespace boost { namespace parameter { namespace aux { Chris@16: template Chris@16: struct result_of0 : result_of Chris@16: {}; Chris@16: Chris@16: }}} // namespace boost::parameter::aux_ Chris@16: Chris@16: #else Chris@16: Chris@16: namespace boost { namespace parameter { namespace aux { Chris@16: template Chris@16: struct result_of0 Chris@16: { Chris@16: typedef typename F::result_type type; Chris@16: }; Chris@16: Chris@16: }}} // namespace boost::parameter::aux_ Chris@16: Chris@16: #endif Chris@16: Chris@16: Chris@16: #endif // BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP