From 2a85f2d9e4898cb6fa7bed0db2afbb9ce49b9c26 Mon Sep 17 00:00:00 2001 From: Myun2 Date: Sun, 26 Jun 2011 11:56:47 +0900 Subject: [PATCH] = right type work. --- roast/include/roast/tp/nest_type.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roast/include/roast/tp/nest_type.hpp b/roast/include/roast/tp/nest_type.hpp index 15001599..86e62d92 100644 --- a/roast/include/roast/tp/nest_type.hpp +++ b/roast/include/roast/tp/nest_type.hpp @@ -46,6 +46,17 @@ namespace roast } // right + template + struct tuple_right_t + { + typedef typename tuple_right_t::_Type _Type; + }; + + template + struct tuple_right_t<0, _TUPLE_T> + { + typedef _TUPLE_T _Type; + }; template struct _RightType{ typedef typename tuple_right_t::_Type _Type; }; template typename _RightType::_Type right() { return tuple_right(*this); } -- 2.11.0