1 #ifndef VCSN_MISC_RAISE_HH
2 # define VCSN_MISC_RAISE_HH
19 template<
typename ...T>
pass(T...) {}
24 template <
typename... Args>
26 inline void raise(Args&&... args)
29 using swallow =
int[];
34 throw std::runtime_error{o.str()};
38 template <
typename... Args>
42 raise(std::forward<Args>(args)...);
46 #endif // !VCSN_MISC_RAISE_HH
Provide a variadic mul on top of a binary mul(), and one().
void require(bool b, Args &&...args)
If b is not verified, raise an error with args as message.