minior vector change
parent
7c49a8a854
commit
cd5c98d748
include/blt/math
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
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_TARGET BLT)
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace blt
|
|||
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)...})
|
||||
{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue