Fix T & ArrayWrapper1D::operator[](int index)

With MinGW I get the following error, because constexpr clashes with const:
vulkan.hpp:544:30: error: ‘constexpr T& vk::ArrayWrapper1D<T, N>::operator const’
cannot be overloaded with ‘constexpr const T& vk::ArrayWrapper1D<T, N>::operator const’
544 | VULKAN_HPP_CONSTEXPR T & operator[](int index) VULKAN_HPP_NOEXCEPT
This commit is contained in:
xantares 2020-10-21 09:11:26 +02:00 committed by GitHub
parent ffafec88ca
commit 2cb33d744a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10250,7 +10250,7 @@ int main( int argc, char ** argv )
return std::array<T, N>::operator[](index);
}
VULKAN_HPP_CONSTEXPR T & operator[](int index) VULKAN_HPP_NOEXCEPT
T & operator[](int index) VULKAN_HPP_NOEXCEPT
{
return std::array<T, N>::operator[](index);
}