From 4c4e1d0d470beba7690d1c0e39bfd1146a25f465 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Tue, 29 Oct 2013 07:46:24 -0700 Subject: libc++: use ceph:: namespaced data types Switches the implemetnation of smart pointers and unordered map/set to use the ceph:: versions. Signed-off-by: Noah Watkins --- fusetrace/fusetrace_ll.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fusetrace') diff --git a/fusetrace/fusetrace_ll.cc b/fusetrace/fusetrace_ll.cc index 7f2b8438f1f..a60a14ca6c1 100644 --- a/fusetrace/fusetrace_ll.cc +++ b/fusetrace/fusetrace_ll.cc @@ -33,18 +33,18 @@ #include -#include -using namespace __gnu_cxx; +#include "include/unordered_map.h" +#include "include/hash_namespace.h" #ifndef __LP64__ -namespace __gnu_cxx { +CEPH_HASH_NAMESPACE_START template<> struct hash { size_t operator()(uint64_t __x) const { static hash H; return H((__x >> 32) ^ (__x & 0xffffffff)); } }; -} +CEPH_HASH_NAMESPACE_END #endif @@ -89,7 +89,7 @@ struct Inode { }; Inode *root = 0; -hash_map inode_map; +ceph::unordered_map inode_map; bool make_inode_path(string &buf, Inode *in) { -- cgit v1.2.3