From: Glyn M. <gly...@gm...> - 2010-06-22 21:26:47
|
Hi Dean, On 22 June 2010 12:06, Dean Michael Berris <mik...@gm...> wrote: > Hi Guys, > > I've been working on something that allows for better tag composition > in cpp-netlib. The idea is to actually now use template > metaprogramming provided by Boost.MPL to differentiate whether tags > denote certain properties. This should make tag specialization easier: > > struct foo : async, http {}; > > We can the query whether: > > is_async<foo>::value // either boolean constant true or false > is_async<foo>::type // either mpl::true_ or mpl::false_ > > This makes overloading the policy dispatcher metafunction > significantly easier to extend. > > Thoughts? Comments? > This would be very useful. I haven't been able to test it yet, but what is the impact on compilation times? G |