
________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Dominique Devienne [ddevienne@gmail.com] Enviado el: miércoles, 15 de julio de 2009 0:37 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] [Multi-Index] has_index<BMI,TAG> meta-function On Tue, Jul 14, 2009 at 5:11 PM, JOAQUIN M. LOPEZ MUÑOZ<joaquin@tid.es> wrote:
My own attempt below fails on tag_list precisely, and I don't understand why. Your post came just in time :) Although if someone can point where mine went wrong, I'm still interested.
[...]
using namespace boost; using boost::multi_index::detail::has_tag;
template<typename BMI, typename TAG> struct has_index { typedef typename BMI::index_type_list index_type_list; typedef typename mpl::end<index_type_list>::type index_type_list_end; typedef typename has_tag<TAG>::template apply<index_type_list>::type iter;
has_tag applies to each index individually, not the entire index_type_list. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo