X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Finclude%2Fstringify.h;fp=src%2Fceph%2Fsrc%2Finclude%2Fstringify.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=1b2a130c9301d0764bf6cf1cfcc1e62f38843ecc;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/include/stringify.h b/src/ceph/src/include/stringify.h deleted file mode 100644 index 1b2a130..0000000 --- a/src/ceph/src/include/stringify.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef __CEPH_STRINGIFY_H -#define __CEPH_STRINGIFY_H - -#include -#include - -#include "include/types.h" - -template -inline std::string stringify(const T& a) { -#if defined(__GNUC__) && !(defined(__clang__) || defined(__INTEL_COMPILER)) - static __thread std::ostringstream ss; - ss.str(""); -#else - std::ostringstream ss; -#endif - ss << a; - return ss.str(); -} - -template -T joinify(const A &begin, const A &end, const T &t) -{ - T result; - for (A it = begin; it != end; it++) { - if (!result.empty()) - result.append(t); - result.append(*it); - } - return result; -} - -#endif