]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/common: add comment to explain the partial specialization 37127/head
authorKefu Chai <kchai@redhat.com>
Mon, 14 Sep 2020 02:14:01 +0000 (10:14 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Sep 2020 02:14:05 +0000 (10:14 +0800)
commitac58f85e13fdd0d775d59f55718ecf726ce70260
treeb7ec1c40721ac8583d10dad75eddc5d67556be6d
parent47e88cd7c3fcc5c4111dcd39ecb1f98091d8d2fc
crimson/common: add comment to explain the partial specialization

it might be confusing why we don't use explicit specialization for
defining errorator::futurize::stored_to_future.

quote from item 16, ยง 17.7.3, n4659:

In an explicit specialization declaration for a member of a class
template or a member template that appears in namespace scope, the
member template and some of its enclosing class templates may remain
unspecialized, except that the declaration shall not explicitly
specialize a class member template if its enclosing class templates are
not explicitly specialized as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/errorator.h