And i go further, A good solution for older codes is stdN:: that already is posted here. And, I think that modules can solve that too.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/a21834c5-8870-42a9-9187-487b2dd8e1bd%40isocpp.org.
Patricy,
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/040d6874-1da5-426f-9b31-5360b8d5c769%40isocpp.org.
I think that is time for a standard library revision. And I ask: Why in each new version the older parts don't evolve?
Do you like write casts all times that need write strings in high level code?
or binary files?
Do you like error codes or exceptions that simplify error conditions? (...)
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/82f33d33-bb86-4230-867f-fdb73fc17bc9%40isocpp.org.
Error codes are a perfectly valid means of communicating failure conditions. So are exceptions. Each is appropriate in its own domain. But we should never believe that one is so superior to the other that the other never ought to be used.
Personally, I'm in favor of always giving the user a choice about such things.
template<typename OnError>
int parseInt(const std::string& s, OnError error)
{
int ret = 0;
for (char c : s) {
if (!is_digit(c)) return error(ret);
ret *= 10; ret += c;
}
return ret;
}
int main()
{
std::string s("123a");
std::cout << parseInt(s, [](int) { throw ParseException(); } );
std::cout << parseInt(s, [](int i) { return i; } );
std::cout << parseInt(s, [](int i) { return -1; } );
}
Nicol Bolas, I'm not talking about naming conventions. I'm talking about "why is the standardy library obsolete?"
Ren Industries,
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAJe%2Baq_s4dLyGZE9uT2Vqct%2Be1Temy%3DNupR8Ox-0awNRXeeS%3DQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/65ad37f5-f499-470a-a3f4-954d48cacc03%40isocpp.org.
Ren Industries,Can you work with your example with binary files? I think you don't
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/a6128ffd-433e-4535-a876-5c8cef7aa1ce%40isocpp.org.
Neither, as argv isn't const; the contents of that array may be modified by the program.Not sure what that has to do with your contrived example though, and it doesn't answer literally any of the other questions I asked.
On Wed, Oct 19, 2016 at 4:59 PM, HarD Gamer <rodrigo...@gmail.com> wrote:
Ren Industries,consider: int main(int argc, char *argv[])Is argv const? Or * * const?
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposal...@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
Neither my example nor yours included any instance of "files".cout is a stream.
On Wed, Oct 19, 2016 at 5:02 PM, HarD Gamer <rodrigo...@gmail.com> wrote:
Ren Industries,Can you work with your example with binary files? I think you don't
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposal...@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
Ren Industries,Can you work with your example with binary files? I think you don't
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/6a44c30e-c7ef-422d-a158-caf9ea0c76d6%40isocpp.org.