https://bugs.documentfoundation.org/show_bug.cgi?id=147021
--- Comment #2 from Mike Kaganski <[email protected]> --- Note also, that there are cases where std::size can't give a compile-time constant, unlike the SAL_N_ELEMENTS macro. That may be e.g. when a class contains an array member, and a static_assert checks the array dimension in its constructor. In that case, a "'this' can't be used in constant expression" error would result after the replacement. Usually, there's a way to restructure such cases, to avoid use of static asserts, and ensure the tested invariant some other way. -- You are receiving this mail because: You are the assignee for the bug.
