* 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>
using std::list;
using std::map;
+using std::pair;
using std::set;
using std::string;
using std::unique_ptr;
#define dout_prefix *_dout << "rbd::mirror::ImageMap: " << this << " " \
<< __func__ << ": "
+using namespace std;
+
namespace rbd {
namespace mirror {
{
dout(20) << "enter" << dendl;
+ using namespace std::chrono_literals;
utime_t next_refresh_pools = ceph_clock_now();
while (!m_stopping) {
template <typename I>
void Throttler<I>::handle_conf_change(const ConfigProxy& conf,
- const set<string> &changed) {
+ const std::set<std::string> &changed) {
if (changed.count(m_config_key)) {
set_max_concurrent_ops(conf.get_val<uint64_t>(m_config_key));
}
std::vector<const char*> args;
argv_to_vec(argc, argv, args);
if (args.empty()) {
- cerr << argv[0] << ": -h or --help for usage" << std::endl;
+ std::cerr << argv[0] << ": -h or --help for usage" << std::endl;
exit(1);
}
if (ceph_argparse_need_usage(args)) {