On Saturday, March 5, 2016 at 5:15:01 AM UTC-6, Rob Stewart wrote:
On March 4, 2016 3:27:08 PM EST, Paul Fultz II
javascript:> wrote: The library could switch to using `Callable`, if everyone feels that is better. However, I honestly prefer to make mutable explicit. I would like to hear feedback from other reviewers as well.
If your library only requires Callable, then users can supply a Callable or a ConstCallable. When you require a ConstCallable, they cannot supply a Callable. There may be valid reasons for that restriction in certain cases, but they should be documented rather than just imposed as a convention.
Yes and if there are valid reasons for the mutable function object then the `mutable_` adaptor can be used. The mutable adaptor makes a mutable function object ConstCallable. Mutability is not prohibited, its just explicit.
___ Rob
(Sent from my portable computation engine)
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost