C++ Logo

sg7

Advanced search

Re: [SG7] [isocpp-core] Most highly recommended reading in the most recent mailing: P2237R0, Metaprogramming

From: Peter Dimov <pdimov_at_[hidden]>
Date: Thu, 29 Oct 2020 13:19:18 +0200
> 2. Is meta::info intended to be equality comparable, and if so, with what
> semantics? Is it just a void* comparison? F.ex. after
>
> using int32 = int;
>
> is reflexpr(int32) == reflexpr(int) true or false?

For those interested, the answer here is "true", according to P1240 (section
"Equality and equivalence") - yes, equality exists and looks through
aliases.

Received on 2020-10-29 06:19:31