From ab2a5c8a2879907d93b374675523bb916b7624e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 16 Sep 2015 19:18:13 +0200 Subject: [PATCH] Fix compilation on Clang. Apparently I can't call conversion operator using {}. --- src/Magnum/BufferImage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/BufferImage.h b/src/Magnum/BufferImage.h index 7d37ab7fe..3db9a2a24 100644 --- a/src/Magnum/BufferImage.h +++ b/src/Magnum/BufferImage.h @@ -197,7 +197,7 @@ template class BufferImage { } /* To avoid ambiguous overload when passing Containers::Array */ template void setData(PixelFormat format, PixelType type, const VectorTypeFor& size, const Containers::Array& data, BufferUsage usage) { - setData({}, format, type, size, Containers::ArrayView{data}, usage); + setData({}, format, type, size, Containers::ArrayView(data), usage); } #endif #endif