Add utils include guard
This commit is contained in:
parent
de00b37382
commit
1bf6738cb5
|
@ -1,3 +1,6 @@
|
|||
#ifndef __utils_HPP__
|
||||
#define __utils_HPP__
|
||||
|
||||
#include <variant>
|
||||
|
||||
template<class... Ts>
|
||||
|
@ -9,4 +12,6 @@ struct overloaded : Ts...
|
|||
template<class T, class... Ts>
|
||||
auto match(const T& event, Ts&&... args){
|
||||
return std::visit(overloaded{std::forward<Ts>(args)...}, event);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue