|
From: Dean M. B. <mik...@gm...> - 2010-06-22 10:07:01
|
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?
HTH
--
Dean Michael Berris
deanberris.com
|