2009/1/31 Naik, Roshan <roshan.naik@hp.com>

Thanks Roman. It is kind of amazing!  Both has_member<> and is_call_possible<> are very interesting (even if a bit ugly).

 

But is_call_possible doesn't seem to work for member functions that don't have any arguments.  I tried twiddling with the implementation a bit and no luck yet.


Sorry, I don't know how to make it work for functions without arguments. Problem is that this program is invalid:
void foo() {}
void foo(...) {}

int main() {
  foo();  // Ambiguous.
}

Roman Perepelitsa.