Correct indexing in ConstExpressionArrayCopy. (#388)

This commit is contained in:
Andreas Süßenbach 2019-09-25 12:05:31 +02:00 committed by Markus Tavenrath
parent e26cb8113a
commit a5d14b5c16
2 changed files with 2 additions and 2 deletions

View File

@ -4919,7 +4919,7 @@ static const std::string constExpressionArrayCopy = R"(
public:
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
{
dst[I] = src[I];
dst[I-1] = src[I-1];
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
}
};

View File

@ -2659,7 +2659,7 @@ namespace VULKAN_HPP_NAMESPACE
public:
VULKAN_HPP_CONSTEXPR static void copy(T dst[N], std::array<T,N> const& src)
{
dst[I] = src[I];
dst[I-1] = src[I-1];
ConstExpressionArrayCopy<T, N, I - 1>::copy(dst, src);
}
};