Boost logo

Boost :

Subject: Re: [boost] BOOST_STATIC_CONSTANT
From: Vladimir Batov (Vladimir.Batov_at_[hidden])
Date: 2017-08-17 02:35:04


On 2017-08-17 12:14, Glen Fernandes via Boost wrote:
> On Wed, Aug 16, 2017 at 9:45 PM, Gavin Lambert via Boost wrote:
>> On 17/08/2017 13:27, Glen Fernandes wrote:
>>>
>>> This is to detect a member 'impl_ptr_type' type? Just:
>>>
>>> template<class, class = void>
>>> struct has_impl_ptr_type
>>> : boost::false_type { };
>>> template<class T>
>>> struct has_impl_ptr_type<T, boost::void_t<typename
>>> T::impl_ptr_type>
>>> : boost::true_type { };
>>
>> That *is* a nicer way to do it. Requires a minimum of Boost 1.64 or
>> C++17,
>> though. (Or VS2015, apparently.)
>
> *Nod* - since Vladimir's intent is proposing this library for Boost, I
> just assume that his library can assume Boost v.Latest. :)

Thank again, Glen. I've incorporated your version. As a separate struct
(as you and Gavin showed) all works now. Many thanks.


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