Boost logo

Boost :

Subject: Re: [boost] [type_erasure]
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-11-26 10:04:20


AMDG

On 11/26/2013 06:26 AM, Andrzej Krzemienski wrote:
> Hi,
> I am trying to use Boost.TypeErasure library with a 'concept' that provides
> contextual conversion to *bool*. That is, I want to type-erase types that
> provide the following operations for some invented object *o*:
>
>
> * if (o) {}*
>
> * if (!o) {}*
> * bool (o); *
>
> I cannot find a predefined concept for that, nor can I use
> BOOST_TYPE_ERASURE_MEMBER or BOOST_TYPE_ERASURE_FREE, because that will not
> work for built in types. Is there any convenience tool that enables
> specifying such concept?
>

No there isn't. You can put a feature
request in trac if you like.

In Christ,
Steven Watanabe


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