Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-21 22:35:06


Daniel Wallin <dalwan01_at_[hidden]> writes:

> Given the recent discussions on policy based pointers and arbitrary
> parameter order I thought I'd see if there is any interest in some
> policy extraction template's I recently wrote.
>
> The idea here is that the user specifies a set of parameters, a set
> of rules by which to extract the policy types and a set of default
> values. The extract_policies template then extracts the matched
> types and makes them easily accessible through numbered typedefs.

This is roughly what I've been suggesting for a while now. Thanks for
coding it up and posting it!

You can see a "runtime" version of this at
boost/python/detail/def_helper.hpp, FWIW.

-Dave

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk