minior vector change

v1
Brett 2024-07-20 15:44:57 -04:00
parent 7c49a8a854
commit cd5c98d748
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.18.9) set(BLT_VERSION 0.18.10)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -69,7 +69,7 @@ namespace blt
constexpr vec(std::initializer_list<U> args): vec(U(), args) constexpr vec(std::initializer_list<U> args): vec(U(), args)
{} {}
template<typename... Args> template<typename... Args, std::enable_if_t<sizeof...(Args) == size, bool> = true>
constexpr explicit vec(Args... args): vec(std::array<T, size>{static_cast<T>(args)...}) constexpr explicit vec(Args... args): vec(std::array<T, size>{static_cast<T>(args)...})
{} {}