neorados: build without "using namespace std"

* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-08-11 12:00:47 +08:00
parent 156bd1963d
commit 423c7d862f
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,8 @@
#include "fifo.h"
using namespace std;
namespace neorados::cls::fifo {
namespace bs = boost::system;
namespace cb = ceph::buffer;

View File

@ -757,7 +757,7 @@ private:
auto e = ba::get_associated_executor(handler, get_executor());
auto a = ba::get_associated_allocator(handler);
_read_meta_(r, oid, ioc,
nullopt,
std::nullopt,
ca::bind_ea(
e, a,
[this,