]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include/types: move operator<< into the proper namespace 23767/head
authorKefu Chai <kchai@redhat.com>
Tue, 28 Aug 2018 06:48:28 +0000 (14:48 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 28 Aug 2018 07:07:03 +0000 (15:07 +0800)
commit2f57008980c451d4034a4640bce76a60fe8405eb
tree15eddc751ef6dd2d4583b3499797974b54a7682c
parent8b43b548a1ed6da49d82283f65ec70c9e3fe94fa
include/types: move operator<< into the proper namespace

we should define the operator<< in the namespace of its 2nd parameter.

normally, the operator<< defined in the global namespace works. but
there is a subtle difference between the operator<< defined in std
namespace and the global one because of Koenig lookup.

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