|
Boost Users : |
Subject: Re: [Boost-users] mpl eval_if and has_member_data use
From: joel (joel.falcou_at_[hidden])
Date: 2009-07-30 07:41:02
You have to delay the evaluation of your T::maxsize by using an external
metafunction.
template<class T
,bool Enable=
boost::introspection::has_static_member_data_maxsize<T>>
struct make_size : mpl::size_t<T::maxsize>
{};
template<class T> struct make_size<T,false> : mpl::size_t<0>
{};
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net