1 // Copyright (c) 2007-2012 Hartmut Kaiser 2 // 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 #if !defined(HPX_TRAITS_PROMISE_LOCAL_RESULT_OCT_27_2011_0416PM) 7 #define HPX_TRAITS_PROMISE_LOCAL_RESULT_OCT_27_2011_0416PM 8 9 #include <hpx/config.hpp> 10 #include <hpx/util/unused.hpp> 11 12 namespace hpx { namespace traits 13 { 14 /////////////////////////////////////////////////////////////////////////// 15 template <typename Result, typename Enable = void> 16 struct promise_local_result 17 { 18 typedef Result type; 19 }; 20 21 template <> 22 struct promise_local_result<util::unused_type> 23 { 24 typedef void type; 25 }; 26 }} 27 28 #endif 29