Lancern's Treasure Chest
15:24 · Apr 29, 2023 · Sat
Fun with flat_map’s non-explicit constructors
Comments
via raymii@users.lobste.rs (raymii)
Arthur O’Dwyer
Fun with flat_map’s non-explicit constructors
Earlier this month I wrote: “Most constructors should be explicit” (2023-04-08).
This week, while writing unit tests for libc++ flat_map (now available on Godbolt!)
I encountered the following quirk of flat_map’s constructor overload set:
void print_map…
Home
Powered by
BroadcastChannel
&
Sepia