Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-04-17 09:44:46

----- Original Message -----
From: "Fernando Cacciola" <fcacciola_at_[hidden]>

> Have you thought already about adding the threading policy?
> The packed interface has the benefit that the template has exactly two
> arguments, so adding a third optional arg (a policy) is not a problem.
> I can't think of a way to add an *optional* policy class to function<>
> its variable arguments.

It's not hard if you're willing to:

1. Disallow policy types from being passed directly as arguments
(boost::ref() could be used to get around it)

2. Ask people to derive their policies from a common base class or
specialize some traits.


Boost list run by bdawes at, gregod at, cpdaniel at, john at