]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: fix non-standard C++ constructs in errorator.h 32488/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 5 Jan 2020 06:23:58 +0000 (08:23 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 5 Jan 2020 17:50:52 +0000 (19:50 +0200)
commitf81054d5ce0538e35dcdbf6d9bad66095cb21e72
tree698951135147c7f79dd3fd8ce94866a0cfcc4c17
parent12aafcd7694d0c9d1b420f207ffcb94ee922dd49
crimson: fix non-standard C++ constructs in errorator.h

Fixing use patterns accepted by gcc, but frowned upon by Clang:

Put noexcept specifier after attributes specifiers (as
per the C++ standard $11.3.5)

Limit the use of a not-completely-defined class names to
within function bodies, per the standard ("A class is considered
a completely-defined object type (or complete type) at the
closing } of the class-specifier.
Within the class member-specification, the class is regarded as
complete within function bodies, default arguments, noexcept-specifiers,
and default member initializers (including such things in nested classes).
Otherwise it is regarded as incomplete within its own class member-specification.")

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/common/errorator.h