This commit is contained in:
ninemine
2025-06-12 21:46:53 +08:00
parent 2cdf5db037
commit d7213d1d3e
8 changed files with 246 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
#pragma once
#pragma once
#ifndef Convention_Runtime_Config_hpp
#define Convention_Runtime_Config_hpp
#pragma warning(disable : 4267)
@@ -1733,7 +1733,7 @@ namespace Convention
elements = std::forward<Arg>(value);
}
template<size_t index, typename Arg,
std::enable_if_t<std::is_convertible_v<const Arg&, Element>>, size_t> = 0 >
std::enable_if_t<std::is_convertible_v<const Arg&, Element>, size_t> = 0 >
void SetValue(const Arg & value) noexcept
{
static_assert(index == 0, "Index out of bounds for ElementTuple.");