From 40483b512218bab50fccaaeb11b51e5ca528fbe1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 4 May 2023 07:30:33 -0700 Subject: Use std::optional instead of a custom implementation --- core/helpers.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'core/helpers.h') diff --git a/core/helpers.h b/core/helpers.h index f0bfcf1b..df51c116 100644 --- a/core/helpers.h +++ b/core/helpers.h @@ -1,18 +1,26 @@ #ifndef CORE_HELPERS_H #define CORE_HELPERS_H +#include #include +#include -#include "vector.h" +struct PathNamePair { + std::string path, fname; -struct PathNamePair { std::string path, fname; }; + PathNamePair() = default; + template + PathNamePair(T&& path_, U&& fname_) + : path{std::forward(path_)}, fname{std::forward(fname_)} + { } +}; const PathNamePair &GetProcBinary(void); extern int RTPrioLevel; extern bool AllowRTTimeLimit; void SetRTPriority(void); -al::vector SearchDataFiles(const char *match, const char *subdir); +std::vector SearchDataFiles(const char *match, const char *subdir); #endif /* CORE_HELPERS_H */ -- cgit v1.2.3