C++ Logo

std-discussion

Advanced search

Re: bitfields member type access

From: Mohamed Khaled <mkmostafa92_at_[hidden]>
Date: Mon, 29 Apr 2019 11:00:11 +0200
>>> This integer promotion doesn't happen everywhere, namely only but when
arithmetic. That's why you get a uint32_t during overload resolution and
decltype.



That was mainly what I wanted to know. Is there a reason for not having a
unified behaviour like always use the type declared in the struct.

Received on 2019-04-29 04:02:00