Boost logo

Boost :

Subject: [boost] IS THERE A WAY TO FIND IF A CERTAIN TYPE HAS A CERTAIN MEMBER?
From: Juan Dent (juandent_at_[hidden])
Date: 2016-01-14 14:35:14


> HI,
>
>
> I have read that via enable_if and other constructs, one can declare a member of a type conditionally.
>
> What I need is a way to be able to test whether a certain type has a certain method or member data, so that I can call it or use it accordingly.
>
> Does boost have something like this??
>
>
> Regards,
> Juan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk