
AMDG Kim Kuen Tang wrote:
as indicated by strasser i have also difficulties to compile your code. But your code seems to be more generic, since you dont need to provide the result_type of the member function.
Can you provide a working example?
A couple bugs:
* CV qualifiers we're causing an ambiguity.
* I missed a pair of parentheses.
* At least one overload of on is required.
The following compiles for me:
#include
{};
struct has_on_struct {
int on(int) const
{
return 1;
}
};
struct arbitrary_struct {
int on(void*) const
{
return 1;
}
};
int main() {
BOOST_MPL_ASSERT((has_on