Browse Source

Fixed accidental implicit use of explicit constructor.

Spotted with Clang, GCC doesn't care at all. Fixes #12.
pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
6d2376dad7
  1. 2
      src/Buffer.h

2
src/Buffer.h

@ -944,7 +944,7 @@ inline Buffer& Buffer::operator=(Buffer&& other) noexcept {
#ifndef MAGNUM_TARGET_GLES
template<class T> Containers::Array<T> 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<T>(0, bufferSize/sizeof(T));
}

Loading…
Cancel
Save