Fix C++17 form of static_assert added by a238209f3 (why does GCC allow it?)

This commit is contained in:
Marek Roszko 2020-11-04 00:17:17 -05:00
parent 5579500bfa
commit 19deb7051a
1 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ public:
if( m_parent ) \ if( m_parent ) \
m_parent->set( m_parent->get() - mvar + aValue ); \ m_parent->set( m_parent->get() - mvar + aValue ); \
\ \
static_assert( chg_bit < decltype( m_column_changed )().size() ); \ static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \
m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( mvar != aValue ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( mvar != aValue ); \
mvar = aValue; \ mvar = aValue; \
} \ } \
@ -192,7 +192,7 @@ public:
if( m_parent ) \ if( m_parent ) \
m_parent->add( aValue ); \ m_parent->add( aValue ); \
\ \
static_assert( chg_bit < decltype( m_column_changed )().size() ); \ static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \
m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \
mvar += aValue; \ mvar += aValue; \
} \ } \
@ -202,7 +202,7 @@ public:
if( m_parent ) \ if( m_parent ) \
m_parent->sub( aValue ); \ m_parent->sub( aValue ); \
\ \
static_assert( chg_bit < decltype( m_column_changed )().size() ); \ static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \
m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \
mvar -= aValue; \ mvar -= aValue; \
} }