]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
denc: remove conditional underlying_type_t from ceph_le* traits
authorCasey Bodley <cbodley@redhat.com>
Mon, 2 Mar 2020 20:23:48 +0000 (15:23 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 2 Mar 2020 21:09:23 +0000 (16:09 -0500)
commitbd1b21ed7ba0dafc22abfe982cb86429cfb0336f
tree10ced1974c663f80040625bb34490cb2a7a5c22b
parente1d9ba3cf902a5ddca877a0827f1a10150b40a3c
denc: remove conditional underlying_type_t from ceph_le* traits

an enum's underlying type must be integral, so it's not possible for
ceph_le<T> to match for enums. for example, this:

  enum class enum_class_16 : ceph_le16 {};

fails to compile with:
underlying type ‘ceph_le16’ {aka ‘ceph_le<short unsigned int>’} of
‘enum_class_16’ must be an integral type

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/include/denc.h