
AMDG On 07/22/2012 04:17 AM, Julien Nitard wrote:
Hi Steven, all
BOOST_TYPE_ERASURE_MEMBER is only mentioned in the reference, it could be useful to add it to the tutorial: I guess that most user concepts will start from member functions of a given type. A sample on how to specialize it for types not having the said member function would be also welcome.
Yes. This macro was introduced fairly late, and I didn't get around to updating the tutorial for the review. I also want to add a corresponding BOOST_TYPE_ERASURE_FREE macro for non-member functions.
Finally, why did you choose not to include the member's signature in the macro ?
I was trying to make the concept that the macro generates as generic as possible.
Isn't this giving the way for hard to find mistakes ?
Mistakes like what? The signature is specified when using the concept. In Christ, Steven Watanabe