|
Boost Users : |
Subject: Re: [Boost-users] [boost] [review][constrained_value] Review ofConstrainedValueLibrary begins today
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2008-12-09 00:06:45
On Dec 8, 2008, at 7:39 PM, Robert Kawulak wrote:
>> > From: Jesse Perla
>> > 2) Dynamic Bounded Types: Right now the static bounds are
>> associated
>> globally with a type, and the dynamic bounds are associated with an
>> instance of
>> a type. Since many use cases involve setting dynamic sets and then
>> creating
>> instances, it is crucial that this type of set is implemented. See
>> Robert's
>> rough notes in: http://lists.boost.org/boost-users/2008/12/42959.php
>
> Yes, this might be added in the future to the library itself. But
> first I want
> to become confident this is what actually users need and that this
> solution is
> general enough. Therefore, I'd be grateful if you (and other
> possible users)
> could test the provided code and say how well is it fulfilling the
> requirements.
> ;-)
This too is already solved if any predicate is acceptable: just use a
predicate functor that forwards via a pointer or reference to another
global predicate. Or (somewhat less efficient but easier) use the
dynamic boost::function predicate that is already included and
boost::bind/lambda/phoenix to a method on this global object.
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