- from_iso_8601 may actually throw exceptions,
causing the program to terminate.
Signed-off-by: Wang Linke <wanglinke_yewu@cmss.chinamobile.com>
}
optional<real_time> from_iso_8601(const string_view s,
- const bool ws_terminates) noexcept {
+ const bool ws_terminates) {
auto end = s.cend();
auto read_digit = [end](sriter& c) mutable {
if (c == end) {
// If a date is invalid, boost::none is returned.
boost::optional<ceph::real_time> from_iso_8601(
- std::string_view s, const bool ws_terminates = true) noexcept;
+ std::string_view s, const bool ws_terminates = true);
enum class iso_8601_format {
Y, YM, YMD, YMDh, YMDhm, YMDhms, YMDhmsn