Boost logo

Boost :

Subject: Re: [boost] Preprocessor directive for a sequence that differs only in datatype
From: Rishabh Arora (rishabharora1997_at_[hidden])
Date: 2017-07-12 12:49:18


On Wed, Jul 12, 2017 at 4:47 AM, Gavin Lambert via Boost <
boost_at_[hidden]> wrote:

> On 11/07/2017 20:09, Rishabh Arora wrote:
>
>> I don't think any of the preprocessor directives will work then? because
>> type cannot be determined at comile time? Is there any other way to do
>> that?
>>
>
> You might want to look at the Boost.Fusion library (
> http://www.boost.org/doc/libs/1_64_0/libs/fusion/doc/html/).
>
> How Can I use boost.fustion library as it requires compile time
computations if I am not wrong. Please correct me if I am.

> Or if this is C++11+ code, at std::tuple and std::get. Though some of
> these might still require values known at compile time; depending on your
> usage you might be able to use constexpr methods for that, however.
>
> Can you please elaborate?

>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman
> /listinfo.cgi/boost
>


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