From: Adam C. Emerson Date: Sat, 22 Jan 2022 00:58:08 +0000 (-0500) Subject: neorados: Remove using namespace std::literals from header X-Git-Tag: v18.0.0~1518^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44736%2Fhead;p=ceph.git neorados: Remove using namespace std::literals from header We don't actually need it. Signed-off-by: Adam C. Emerson --- diff --git a/src/include/neorados/RADOS.hpp b/src/include/neorados/RADOS.hpp index 244442bcf608..fa1ac92ae518 100644 --- a/src/include/neorados/RADOS.hpp +++ b/src/include/neorados/RADOS.hpp @@ -60,8 +60,6 @@ #include "common/ceph_time.h" namespace neorados { -using namespace std::literals; - class Object; class IOContext; } @@ -186,7 +184,7 @@ private: std::aligned_storage_t impl; }; -inline constexpr std::string_view all_nspaces("\001"sv); +inline constexpr std::string_view all_nspaces("\001"); enum class cmpxattr_op : std::uint8_t { eq = 1, diff --git a/src/neorados/RADOS.cc b/src/neorados/RADOS.cc index 1784a939dac1..93f02b1ae702 100644 --- a/src/neorados/RADOS.cc +++ b/src/neorados/RADOS.cc @@ -37,6 +37,8 @@ #include "neorados/RADOSImpl.h" #include "include/neorados/RADOS.hpp" +using namespace std::literals; + namespace bc = boost::container; namespace bs = boost::system; namespace ca = ceph::async;