[patch, libstdc++] In debug mode, diagnose empty initializer_list in min/max/minmax

Eelis eelis@eelis.net
Tue Feb 23 21:03:00 GMT 2016


The std::min, std::max, and std::minmax overloads that take a std::initializer_list all require that the list is not empty. The attached patch adds debug mode checks for this.

Thanks,

Eelis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diagnose_empty_init_list_in_minmax.patch
Type: text/x-patch
Size: 9084 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160223/b730f827/attachment.bin>


More information about the Libstdc++ mailing list