mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librados/librados.cc: fix implicitly-defined namespace 'std'
Fix warning from clang(++): librados/librados.cc:15:17: warning: using directive refers to implicitly-defined namespace 'std' using namespace std; ^ Include what we need and use the related classes. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
69552ff083
commit
d6b205f185
@ -12,8 +12,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/errno.h"
|
||||
#include "common/ceph_argparse.h"
|
||||
@ -27,6 +25,20 @@ using namespace std;
|
||||
#include "librados/PoolAsyncCompletionImpl.h"
|
||||
#include "librados/RadosClient.h"
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <stdexcept>
|
||||
|
||||
using std::string;
|
||||
using std::map;
|
||||
using std::set;
|
||||
using std::vector;
|
||||
using std::list;
|
||||
using std::runtime_error;
|
||||
|
||||
#define dout_subsys ceph_subsys_rados
|
||||
#undef dout_prefix
|
||||
#define dout_prefix *_dout << "librados: "
|
||||
|
Loading…
Reference in New Issue
Block a user