From d5a8a95098178837eeebfd6464bdf029e9f07133 Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 3 Dec 2023 14:18:41 +0100 Subject: [PATCH] fix(proxy): default template --- cmake/proxy.cpp.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/proxy.cpp.in b/cmake/proxy.cpp.in index f2ed9f8..cd0f513 100644 --- a/cmake/proxy.cpp.in +++ b/cmake/proxy.cpp.in @@ -7,10 +7,10 @@ namespace lime { inline FARPROC proxy_originals[@EXPORT_COUNT@] = {}; - template - static inline void setup_proxy(const std::basic_string_view& path) + template + static inline void setup_proxy(std::basic_string_view path) { - auto *const original = LoadLibrary(path.c_str()); + auto *const original = LoadLibrary(path.data()); #define LIME_LOAD_ORIGINAL(index, name) proxy_originals[(index)-1] = GetProcAddress(original, name); LIME_MAP_EXPORTS(LIME_LOAD_ORIGINAL)