C++ Logo


Advanced search

Re: [SG7] P1887R0 attribute predicades

From: Cleiton Santoia <cleitonsantoia_at_[hidden]>
Date: Tue, 10 Nov 2020 16:46:47 -0300
Probably, what I was thinking is "where would be the point of instantiation
> of the attribute" ?

Sorry, I forgot to split the sentences, "Probably" is refering to Corentin
answer and after that is my question.

2 - constexpr auto y = std::meta::attribute<Y&>(reflexpr(W)) // can I
> get a reference to Y ? could it be copy free ?

I mean const ref
2 - constexpr auto y = std::meta::attribute<const Y&>(reflexpr(W)) //
can I get a const reference to Y ? could it be copy free ?


Received on 2020-11-10 13:47:01