Pavel.Hi there,How are these two supposed to be distinguished by the compiler if the 3rd parameter is defaulted.
/* 1. */ basic_string_view basic_string::slice(size_t start, size_t end);
/* 2. */ basic_string basic_string::slice(size_t start, size_t end, size_t step = 1);
I mean, I don't see how the function overloading will work in this case.const auto str = initial_str.slice(3, 5); // which of the above two is called?Regards,On Thu, Mar 14, 2024 at 9:49 AM Rhidian De Wit via Std-Proposals <std-proposals@lists.isocpp.org> wrote:Hi all,--With some helpful suggestions, I'd like to present my draft proposal for the inclusion of several new utility functions to be added to std::basic_string.Please reach out if you have any questions, concerns or feedback!Sincerely,--Rhidian De WitSoftware Engineer - Barco
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals