From 4a8e59a95bec57a8faf966954fc867a7671437c9 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 10 Feb 2021 23:38:51 +0100 Subject: [PATCH] Fixed multiple definitions of _lang user defined literal --- plugins/libimhex/include/hex/helpers/lang.hpp | 2 +- source/window.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/libimhex/include/hex/helpers/lang.hpp b/plugins/libimhex/include/hex/helpers/lang.hpp index 868272260..b06be0b97 100644 --- a/plugins/libimhex/include/hex/helpers/lang.hpp +++ b/plugins/libimhex/include/hex/helpers/lang.hpp @@ -25,7 +25,7 @@ namespace hex { namespace lang_literals { - LangEntry operator""_lang(const char *string, size_t) { + inline LangEntry operator""_lang(const char *string, size_t) { return LangEntry(string); } diff --git a/source/window.cpp b/source/window.cpp index becc3afec..74202b68c 100644 --- a/source/window.cpp +++ b/source/window.cpp @@ -200,7 +200,6 @@ namespace hex { } void Window::frameBegin() { - printf("%s\n", static_cast("hello.world"_lang)); glfwPollEvents(); ImGui_ImplOpenGL3_NewFrame();