]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Formatter: include used header
authorKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 09:28:56 +0000 (17:28 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 09:29:49 +0000 (17:29 +0800)
otherwise it fails to build with gcc-toolset-10, like:

../src/common/Formatter.cc: In member function ‘virtual void ceph::XMLFormatter::close_section()’:
../src/common/Formatter.cc:449:8: error: ‘transform’ is not a member of ‘std’
  449 |   std::transform(section.begin(), section.end(), section.begin(),
      |        ^~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/Formatter.cc

index b599e48b3465be84d931a77d042013916983faca..362deffb5ab4a35d393a9565b4447f48fd87f3f0 100644 (file)
@@ -19,6 +19,7 @@
 #include "include/buffer.h"
 
 #include <fmt/format.h>
+#include <algorithm>
 #include <set>
 #include <limits>