We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef849a1 commit fac0f5eCopy full SHA for fac0f5e
include/ylt/reflection/template_string.hpp
@@ -36,7 +36,7 @@ inline constexpr std::string_view type_string() {
36
constexpr auto next1 = str.rfind(sample[pos + 3]);
37
#if defined(_MSC_VER)
38
constexpr std::size_t npos = str.find_first_of(" ", pos);
39
- if (npos != std::string_view::npos)
+ if constexpr (npos != std::string_view::npos)
40
return str.substr(npos + 1, next1 - npos - 1);
41
else
42
return str.substr(pos, next1 - pos);
0 commit comments