Merge pull request #520 from asuessenbach/const

Correct const usage in ConstExpression1DArrayCopy
This commit is contained in:
Andreas Süßenbach 2020-02-23 00:33:29 +01:00 committed by GitHub
commit 46ee05a9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5441,14 +5441,14 @@ static const std::string constExpressionArrayCopy = R"(
public:
VULKAN_HPP_CONSTEXPR_14 static void copy( T dst[N], const T src[N] ) VULKAN_HPP_NOEXCEPT
{
VULKAN_HPP_CONSTEXPR_14 size_t C = N / 2;
const size_t C = N / 2;
PrivateConstExpression1DArrayCopy<T, C, C>::copy( dst, src );
PrivateConstExpression1DArrayCopy<T, N - C, N - C>::copy(dst + C, src + C);
}
VULKAN_HPP_CONSTEXPR_14 static void copy( T dst[N], std::array<T, N> const& src ) VULKAN_HPP_NOEXCEPT
{
VULKAN_HPP_CONSTEXPR_14 size_t C = N / 2;
const size_t C = N / 2;
PrivateConstExpression1DArrayCopy<T, C, C>::copy(dst, src.data());
PrivateConstExpression1DArrayCopy<T, N - C, N - C>::copy(dst + C, src.data() + C);
}