|
Boost : |
Subject: Re: [boost] quince: queries in C++ expressions
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2014-07-21 08:34:52
On 21/07/2014 08:01 a.m., Michael Shepanski wrote:
> On 21/07/2014 6:53 PM, Mathias Gaunard wrote:
>> On 15/07/14 14:45, Michael Shepanski wrote:
>>
>>> Could you clarify what you mean by "do this"? QUINCE_MAP_CLASS builds a
>>> class with exactly the data members, function members, and bases that
>>> quince requires.
>>
>> Boost.Fusion defines tuple concepts, and provides utilities to adapt a
>> class to a tuple (or define a class and adapt it at the same time).
>>
>> To maximize compatibility, and to prevent users having to say that
>> their structure is tuple-like a billion times, it's better to reuse this.
>
> I see that BOOST_FUSION_ADAPT_STRUCT asks users to repeat the members'
> types, in a way that QUINCE_MAP_CLASS doesn't. (Why is that, btw?)
Because Fusion supports C++98. That said, there's work being done on a
branch to add member type deduction via `decltype` to all ADAPT macros.
Regards,
-- Agustín K-ballo Bergé.- http://talesofcpp.fusionfenix.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk