From 6d2376dad78ac75e7c93b4365b4149a597f44d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 12 Sep 2013 19:21:55 +0200 Subject: [PATCH] Fixed accidental implicit use of explicit constructor. Spotted with Clang, GCC doesn't care at all. Fixes #12. --- src/Buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.h b/src/Buffer.h index 479fb6204..4e6a516be 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -944,7 +944,7 @@ inline Buffer& Buffer::operator=(Buffer&& other) noexcept { #ifndef MAGNUM_TARGET_GLES template Containers::Array inline Buffer::data() { const Int bufferSize = size(); - CORRADE_ASSERT(bufferSize%sizeof(T) == 0, "Buffer::data(): the buffer size is" << bufferSize << "bytes, which can't be expressed as array of types with size" << sizeof(T), {}); + CORRADE_ASSERT(bufferSize%sizeof(T) == 0, "Buffer::data(): the buffer size is" << bufferSize << "bytes, which can't be expressed as array of types with size" << sizeof(T), nullptr); return subData(0, bufferSize/sizeof(T)); }