|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-08-04 10:08:26
Zeljko Vrba <zvrba_at_[hidden]> writes:
> I hope the MPL label is right. At least the question has *some*
> relevance to metaprogramming.
>
> Basically, I need to find out whether a certain function F over a
> certain type is defined, and if yes, take its address.
I can help you with the first part:
http://www.boost-consulting.com/boost/boost/detail/is_incrementable.hpp
shows an example determining if ++x is defined.
However, reliably taking the address of an overloaded function
involves knowing the exact types in its signature. I'm not sure how
you can do that.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net