Пʼятниця, 20 вересня 2013 р. 17:19:35 UTC+1 користувач Jonathan Wakely написав:On Friday, September 20, 2013 5:06:28 PM UTC+1, vova...@gmail.com wrote:add attribute (like [[meta]] or [[info]]) thet create specialization of class "dynamic trait" for type/func/enum/...
so we can use it like extended type traits
meta<MyEnum>::items[3].name
meta<MyClass>::field[0].name //shift, size, typeid, ....
meta<func>::signature
etc
I think you need to explain this a bit more.Many tasks require rich meta-information(more than can give typeid). For example for build SQL-queries from struct we need names of fields: