forked from Kistler-Group/sdbus-cpp
feat: implement Overload pattern in utils (#385)
This commit is contained in:
committed by
GitHub
parent
d80483cdc0
commit
47a84ab889
@@ -78,6 +78,10 @@ namespace sdbus::internal {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Implementation of the overload pattern for variant visitation
|
||||
template <class... Ts> struct overload : Ts... { using Ts::operator()...; };
|
||||
template <class... Ts> overload(Ts...) -> overload<Ts...>;
|
||||
|
||||
}
|
||||
|
||||
#endif /* SDBUS_CXX_INTERNAL_UTILS_H_ */
|
||||
|
Reference in New Issue
Block a user