Open AdamStepan opened 6 years ago
I suggest using printf
functions instead of iostreams
, since printf
function family are noexcept by default.
iostreams doesnt throw exceptions by default
Yes, but you don't have a guarantee that someone didn't enable them via exceptions
method. So, these methods are not noexcept
(https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt)
Methods look like this:
But
operator<<
is notnoexcept
.