|
-
August 9th, 2010, 09:52 AM
#1
converting two types according to their typeid
Hello,
boost::is_convertible<From, To> does it for types.
I need it for typeid's.
Meaning, is there a way to know if two types are convertible according to their typeid.
struct B {
B(const A& a) {}
};
struct A {};
boost::is_convertible<A,b>::value --> will be true.
i need something like this:
A a;
B b;
Is_Convertible(typeid(a),typeid(b));
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|