Boost logo

Boost :

Subject: Re: [boost] [OT][RFC] standardized compile-time reflection
From: Matus Chochlik (chochlik_at_[hidden])
Date: 2012-04-26 14:45:47

>>One more thing that's missing from the proposition is annotations (as
>>in "user defined metadata"). I'd be happy to have those as well. An
>>annotation could be a list of objects of arbitrary type associated to
>>a reflected object.
>>The motivational example is formatting an object to XML/Json/CSV to be
>>able to override the default serialization by the user.
>>Doing it without the compiler's help is already possible for some
>>objects (types and members) by specializing a template on the type or
>>pointer to member to be annotated, though I guess some new syntax
>>would be required to make the life of the user easy.
> 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.



Boost list run by bdawes at, gregod at, cpdaniel at, john at