diff --git a/src/Magnum/ImageView.h b/src/Magnum/ImageView.h index 013f47def..9f1572fd8 100644 --- a/src/Magnum/ImageView.h +++ b/src/Magnum/ImageView.h @@ -92,7 +92,7 @@ template class ImageView { #ifndef DOXYGEN_GENERATING_OUTPUT /* To avoid ambiguous overload when passing ArrayView to the constructor */ - template explicit ImageView(PixelFormat format, PixelType type, const VectorTypeFor& size, Containers::ArrayView data): ImageView{{}, format, type, size, Containers::ArrayView{data}} {} + template explicit ImageView(PixelFormat format, PixelType type, const VectorTypeFor& size, Containers::ArrayView data): ImageView{{}, format, type, size, Containers::ArrayView{data}} {} template explicit ImageView(PixelFormat format, PixelType type, const VectorTypeFor& size, const Containers::Array& data): ImageView{{}, format, type, size, Containers::ArrayView(data)} {} /* To avoid decay of sized arrays and nullptr to const void* and unwanted use of deprecated function */