mirror of
https://github.com/Kistler-Group/sdbus-cpp.git
synced 2025-08-03 12:04:27 +02:00
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;
|
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_ */
|
#endif /* SDBUS_CXX_INTERNAL_UTILS_H_ */
|
||||||
|
Reference in New Issue
Block a user