C++ Logo

sg7

Advanced search

Re: [SG7] Can singular properties be overloaded to work with reflection ranges ?

From: Andrew Sutton <asutton.list_at_[hidden]>
Date: Tue, 3 Nov 2020 08:49:39 -0500
You could do that. I don't remember hearing of any compelling uses cases
motivating them, though.



On Mon, Nov 2, 2020 at 11:56 PM Cleiton Santoia via SG7 <
sg7_at_[hidden]> wrote:

>
> Two points:
>
> 1 - Can singular properties, like name_of be overloaded to work with
> reflection_ranges ?
>
> consteval auto name_of(info) -> string
> consteval auto name_of(reflection_range) -> vector<string> ?
>
> consteval bool is_member_function(info);
> consteval auto is_member_function(reflection_range); -> vector<int8_t> ?
> // ok,ok vector<bool> not good
>
> consteval std::size_t size_of(info);
> consteval auto size_of( reflection_range); -> vector< std::size_t >
>
> 2 - Can this "ranged" versions be implemented thru reflection ?
>
> Thanks
> BR
>
> --
> SG7 mailing list
> SG7_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg7
>

Received on 2020-11-03 07:49:52