Add utils include guard

This commit is contained in:
rucadi 2024-05-15 18:51:43 +02:00
parent de00b37382
commit 1bf6738cb5
1 changed files with 6 additions and 1 deletions

View File

@ -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