This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65322] Narrowing conversion


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65322

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. to make the code compile just don't use braces for the initialization:

    : m_counter( b ? 1u : 0u )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]