mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
13 lines
269 B
Plaintext
13 lines
269 B
Plaintext
ETL_STATIC_ASSERT
|
|
Either maps on to the built-in static_assert or supplies a suitable definition.
|
|
|
|
ETL_STATIC_ASSERT(condition, message);
|
|
|
|
Example
|
|
template <typename T>
|
|
void Do_This(T value)
|
|
{
|
|
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
|
|
}
|
|
|