]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/iso_8601.cc
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / common / iso_8601.cc
index 39e00e0b31f9c648d79b54c7e94fbab56b83ca67..29cfd4b4737f4d0b892837084f48e34f3a157697 100644 (file)
@@ -1,11 +1,12 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include <iomanip>
+#include <sstream>
+
 #include "iso_8601.h"
 #include "include/timegm.h"
 
-#include <sstream>
-
 namespace ceph {
 using std::chrono::duration_cast;
 using std::chrono::nanoseconds;
@@ -58,7 +59,7 @@ optional<real_time> from_iso_8601(const string_ref s,
     return f;
   };
 
-  auto read_digits = [end, &read_digit](sriter& c, std::size_t n) {
+  auto read_digits = [&read_digit](sriter& c, std::size_t n) {
     auto v = 0ULL;
     for (auto i = 0U; i < n; ++i) {
       auto d = read_digit(c);