Boost logo

Boost :

Subject: Re: [boost] [OT][RFC] standardized compile-time reflection
From: Matus Chochlik (chochlik_at_[hidden])
Date: 2012-04-27 02:00:32


On Fri, Apr 27, 2012 at 12:36 AM, Julien Nitard <julien.nitard_at_[hidden]> wrote:
>>> C++11 already provides attributes. This could be made reflectable, so
>>> attributes could be used by libraries and not just compilers.
>>>
>>>
>>
>> Yes, C++11's generalized attributes is one of the options I've been looking
>>  into for this puspose.
>
> C++11 Attributes are not supposed to change the meaning of the
> program. The program should still work if the compiler doesn't support
> them. They may provide optimization hints or info to your gui but
> can't be used to produce effects.
>

This is one of the reasons (together with the fact that attributes
are part of the declaration and cannot be decoupled from it) why
the annotations are still an unresolved issue. Since using attributes
for this purpose would require some changes to their specification.

BR,

Matus


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