[Bug libstdc++/92057] variant converting constructor fails for primitives

2019-10-14 Thread mclow.lists at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92057

Marshall Clow  changed:

   What|Removed |Added

 CC||mclow.lists at gmail dot com

--- Comment #10 from Marshall Clow  ---
> I'm sorry to belabour this, but I don't see how narrowing conversions even 
> has anything to do with p0608.

Quoting from
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0608r3.html:
> Proposed Resolution:

> This paper proposes to constrain the variant converting constructor and the 
> converting assignment operator to prevent narrowing conversions and 
> conversions to bool.

[Bug libstdc++/92057] variant converting constructor fails for primitives

2019-10-14 Thread mclow.lists at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92057

--- Comment #11 from Marshall Clow  ---
With wrapping:

> Proposed Resolution:

> This paper proposes to constrain the variant converting constructor and the 
> converting assignment operator to prevent narrowing conversions 
> and conversions to bool.

[Bug libstdc++/90919] vector::iterator is constructible from a pointer

2019-06-18 Thread mclow.lists at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90919

Marshall Clow  changed:

   What|Removed |Added

 CC||mclow.lists at gmail dot com

--- Comment #1 from Marshall Clow  ---
This code is rejected by both libc++ and MSVC, so it is not just "theoretically
non-portable"