]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/CompatSet: do not "using ceph::operator<<"
authorKefu Chai <kchai@redhat.com>
Thu, 7 Jan 2021 07:14:57 +0000 (15:14 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 8 Jan 2021 05:57:18 +0000 (13:57 +0800)
it's simply not correct. because "operator<<(std::ostream&out, const
std::pair<A,B>&)" and friends are defined in "namespace std", and what
this source file intents to use are exactly these operator<<'s, there is
no need to bring any "ceph::operator<<" into this scope.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/CompatSet.h

index 3439cc82ff67fdcdec7ddfcc920443d8e05c7891..2f913177692623cda52f3e9aea4654a07480eb06 100644 (file)
@@ -257,7 +257,6 @@ struct CompatSet {
 };
 WRITE_CLASS_ENCODER(CompatSet)
 
-using ceph::operator <<;
 inline std::ostream& operator<<(std::ostream& out, const CompatSet::FeatureSet& fs)
 {
   return out << fs.names;