Tutorial by Examples

Assertations mean that a condition should be checked and if it's false, it's an error. For static_assert(), this is done compile-time. template<typename T> T mul10(const T t) { static_assert( std::is_integral<T>::value, "mul10() only works for integral types" ); re...

Page 1 of 1