From 4d6008938c25705b4ec56afd060eaf52e6bdcb0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 28 Apr 2017 21:39:40 +0200 Subject: [PATCH] Fix ambiguous overload in ImageView constructor with non-const ArrayView. --- src/Magnum/ImageView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */