Boost logo

Boost Users :

Subject: [Boost-users] [type_traits] Obtain type of pointer to member.
From: Germán Diago (germandiago_at_[hidden])
Date: 2009-10-15 03:49:15


Hello. I would like to know if it's possible to obtain the base type
from this expression:

struct MyStruct {
   string field1;
};

decltype(&MyStruct::field1) is a pointer to member.
I would like to obtain type string instead, removing the pointer to member.
Is it possible?

Thanks.


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