]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
errorator: don't rely on non-evaluation of static_assert in constexpr branch
authorSamuel Just <sjust@redhat.com>
Mon, 18 May 2020 18:03:36 +0000 (11:03 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 19 May 2020 16:15:53 +0000 (09:15 -0700)
commiteecc61f3c9be13aa9dadf3f0790ab757d8ac7779
treed725c3a8ec7e1e7dda0a208d6aa44bb2b8569825
parenta5e6ddf9ceee5ee450309bf7ce529ed96fc9d3d8
errorator: don't rely on non-evaluation of static_assert in constexpr branch

At least in clang, we appear to fail that static assert even with another
branch taken.  Instead, assert that one of the other conditions is true.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/errorator.h