]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include: xlist: Fix Clang error for missing string 19367/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 7 Dec 2017 00:21:56 +0000 (01:21 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 7 Dec 2017 23:28:33 +0000 (00:28 +0100)
Clang complains:
home/jenkins/workspace/ceph-master/src/include/xlist.h:210:13: error: invalid operands to binary exp
ression ('std::ostream' (aka 'basic_ostream<char>') and 'const char *')
        oss << ", ";
        ~~~ ^  ~~~~
1 error generated.

include ostream to fix Clang error

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/include/xlist.h

index 3e39333e511d4245d785c5ce7cf5d34531829486..a191cbee758d6dc784e5a0ba33d9e05dfea9c463 100644 (file)
@@ -18,6 +18,7 @@
 #include "include/assert.h"
 #include <iterator>
 #include <cstdlib>
+#include <ostream>
 
 template<typename T>
 class xlist {