diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,3 +39,7 @@ std::vector<std::string> argsplit(const std::string& str); //! Calls the system getenv and sets the string if the env name it exists. //! \returns true if the env name existed, false otherwise. bool get_env(std::string_view name, std::string& value); + +// helper type for the visitor +template<class... Ts> +struct overloaded : Ts... { using Ts::operator()...; }; |
