Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-18 10:17:05


Edward Diener wrote:
> Beman Dawes wrote:
>> In discussions about being able to specify a function to check the
>> validity of path element names, a simple function pointer has been
>> used:
>>
>> typedef bool (*name_check)( const std::string & name );
>>
>> Alternately, boost::function could be used. [...]

I prefer that we have a good understanding of the semantics first, which I
admit I do not.

>> Comments?
>
> I disagree. You have a magnificent implementation in boost::function,
> which can be bound to many different callback types, and yet you
> don't want to use it simply to reduce a dependency. [...]

The problem is that merely including <boost/function.hpp> may render the
filesystem library unusable on some compilers, even if alternative name
checkers are never used.


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