From ac8a84fc018b58f195d3891469cb4fc47884c93c Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 24 May 2024 04:10:27 +0200 Subject: [PATCH] Build fix Make sure nullchar is created in a generic way. Also, for some reason template argument deduction was failing. --- include/wrenpp/detail/string_bt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wrenpp/detail/string_bt.hpp b/include/wrenpp/detail/string_bt.hpp index 2ea006e..112f1d5 100644 --- a/include/wrenpp/detail/string_bt.hpp +++ b/include/wrenpp/detail/string_bt.hpp @@ -146,7 +146,7 @@ namespace dhandy { template template constexpr auto string::substr() const { - return string(m_data + std::min(Start, S - 1), 0) + string(""); + return string(m_data + std::min(Start, S - 1), 0) + string<1, Ch>({Ch{}}); } } //namespace bt } //namespace dhandy