From 5b909f8c2e219be400a393f0bdb808c7be7af122 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Mon, 20 Dec 2004 19:35:33 +0000 Subject: [PATCH] MSVC 7.0 ETI fix [SVN r26560] --- include/boost/mpl/vector/aux_/at.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/mpl/vector/aux_/at.hpp b/include/boost/mpl/vector/aux_/at.hpp index ce5fe34..e63603d 100644 --- a/include/boost/mpl/vector/aux_/at.hpp +++ b/include/boost/mpl/vector/aux_/at.hpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -89,6 +90,15 @@ template< BOOST_MPL_AUX_NTTP_DECL(long, n_) > struct v_at_impl template< typename V > struct result_; }; +// to work around ETI, etc. +template<> struct v_at_impl<-1> +{ + template< typename V > struct result_ + { + typedef void_ type; + }; +}; + } // namespace aux template< typename T, BOOST_MPL_AUX_NTTP_DECL(long, n_) >