Boost logo

Boost Users :

From: Ray Hilton (rayhilton_64_at_[hidden])
Date: 2006-03-01 19:55:07


Well, this probably isn't even possible to implement but i might aswell ask
anyway.

Can is_polymorphic take an additional optional template arg that is a type,
or a type sequence.
Those types, are not considered to make the checked type polymorphic.

Example

struct X : public boost::noncopyable {};
struct xor : public std::binary_function<bool,bool,bool> {};

std::cout << boost::is_polymorphic<X, mpl::vector<boost::noncopyable, ....>
>::value << std::endl;
std::cout << boost::is_polymorphic<xor, std::binary_function<bool,bool,bool>
>::value << std::end;

output
0
0

This would be of great help.

Thanks,

Ray

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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