HomePhabricator

Add a message to static_assert

Description

Add a message to static_assert

Summary:
static_assert with no message is a c++17 feature, and causes clang to
generate a -Wc++17-extensions warning.

Test Plan:
With Clang:

make check

Reviewers: #bitcoin_abc, deadalnix, jasonbcox, Mengerian, markblundeberg

Reviewed By: #bitcoin_abc, deadalnix, jasonbcox, Mengerian, markblundeberg

Subscribers: Mengerian, markblundeberg, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D3794

Details

Provenance
FabienAuthored on Aug 2 2019, 07:36
FabienPushed on Aug 6 2019, 09:01
Reviewer
Restricted Project
Differential Revision
D3794: Add a message to static_assert
Parents
rABC7e560769acbe: [CI] Enable the undefined behaviour sanitizer
Branches
Unknown
Tags
Unknown