mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix make_array: explicit conversion to T
This commit is contained in:
parent
ce4a65b2ad
commit
2dc912522b
3 changed files with 19 additions and 19 deletions
|
@ -23,7 +23,7 @@ namespace sprout {
|
|||
template<typename T, typename... Types>
|
||||
inline SPROUT_CONSTEXPR sprout::array<T, sizeof...(Types)>
|
||||
make_array(Types&&... args) {
|
||||
return sprout::array<T, sizeof...(Types)>{{sprout::forward<Types>(args)...}};
|
||||
return sprout::array<T, sizeof...(Types)>{{T(sprout::forward<Types>(args))...}};
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -39,7 +39,7 @@ namespace sprout {
|
|||
typename sprout::common_decay<Types&&...>::type,
|
||||
sizeof...(Types)
|
||||
> type;
|
||||
return type{{sprout::forward<Types>(args)...}};
|
||||
return type{{typename sprout::common_decay<Types&&...>::type(sprout::forward<Types>(args))...}};
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue