C++ Logo

std-discussion

Advanced search

Re: What makes bool{2} ill-formed?

From: Lyberta <lyberta_at_[hidden]>
Date: Fri, 7 Aug 2020 18:36:55 +0300
Matthew Woehlke via Std-Discussion:
> `bool{2}` is invalid (narrowing) for the same reason `char{65536}` is invalid.

char{65536} is implementation-defined.


Received on 2020-08-07 10:40:31