Browse Source

GCC 4.4 compatibility: no std::is_constructible.

Vladimír Vondruš 13 years ago
parent
commit
3494e7db83
  1. 4
      src/Test/AbstractQueryGLTest.cpp
  2. 4
      src/Test/AbstractShaderProgramGLTest.cpp
  3. 4
      src/Test/AbstractTextureGLTest.cpp
  4. 4
      src/Test/BufferGLTest.cpp
  5. 4
      src/Test/BufferImageGLTest.cpp
  6. 4
      src/Test/FramebufferGLTest.cpp
  7. 4
      src/Test/ImageTest.cpp
  8. 4
      src/Test/MeshGLTest.cpp
  9. 4
      src/Test/RenderbufferGLTest.cpp
  10. 4
      src/Test/ShaderGLTest.cpp
  11. 4
      src/Trade/Test/ImageDataTest.cpp

4
src/Test/AbstractQueryGLTest.cpp

@ -65,11 +65,15 @@ void AbstractQueryGLTest::construct() {
} }
void AbstractQueryGLTest::constructCopy() { void AbstractQueryGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<SampleQuery, const SampleQuery&>::value)); CORRADE_VERIFY(!(std::is_constructible<SampleQuery, const SampleQuery&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<SampleQuery, const SampleQuery&>{})); CORRADE_VERIFY(!(std::is_assignable<SampleQuery, const SampleQuery&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void AbstractQueryGLTest::constructMove() { void AbstractQueryGLTest::constructMove() {

4
src/Test/AbstractShaderProgramGLTest.cpp

@ -79,11 +79,15 @@ void AbstractShaderProgramGLTest::construct() {
} }
void AbstractShaderProgramGLTest::constructCopy() { void AbstractShaderProgramGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<MyShader, const MyShader&>::value)); CORRADE_VERIFY(!(std::is_constructible<MyShader, const MyShader&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<MyShader, const MyShader&>{})); CORRADE_VERIFY(!(std::is_assignable<MyShader, const MyShader&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void AbstractShaderProgramGLTest::constructMove() { void AbstractShaderProgramGLTest::constructMove() {

4
src/Test/AbstractTextureGLTest.cpp

@ -60,11 +60,15 @@ void AbstractTextureGLTest::construct() {
} }
void AbstractTextureGLTest::constructCopy() { void AbstractTextureGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Texture2D, const Texture2D&>::value)); CORRADE_VERIFY(!(std::is_constructible<Texture2D, const Texture2D&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Texture2D, const Texture2D&>{})); CORRADE_VERIFY(!(std::is_assignable<Texture2D, const Texture2D&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void AbstractTextureGLTest::constructMove() { void AbstractTextureGLTest::constructMove() {

4
src/Test/BufferGLTest.cpp

@ -90,11 +90,15 @@ void BufferGLTest::construct() {
} }
void BufferGLTest::constructCopy() { void BufferGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Buffer, const Buffer&>::value)); CORRADE_VERIFY(!(std::is_constructible<Buffer, const Buffer&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Buffer, const Buffer&>{})); CORRADE_VERIFY(!(std::is_assignable<Buffer, const Buffer&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void BufferGLTest::constructMove() { void BufferGLTest::constructMove() {

4
src/Test/BufferImageGLTest.cpp

@ -72,11 +72,15 @@ void BufferImageTest::construct() {
} }
void BufferImageTest::constructCopy() { void BufferImageTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<BufferImage2D, const BufferImage2D&>::value)); CORRADE_VERIFY(!(std::is_constructible<BufferImage2D, const BufferImage2D&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<BufferImage2D, const BufferImage2D&>{})); CORRADE_VERIFY(!(std::is_assignable<BufferImage2D, const BufferImage2D&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void BufferImageTest::constructMove() { void BufferImageTest::constructMove() {

4
src/Test/FramebufferGLTest.cpp

@ -61,11 +61,15 @@ void FramebufferGLTest::construct() {
} }
void FramebufferGLTest::constructCopy() { void FramebufferGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Framebuffer, const Framebuffer&>::value)); CORRADE_VERIFY(!(std::is_constructible<Framebuffer, const Framebuffer&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Framebuffer, const Framebuffer&>{})); CORRADE_VERIFY(!(std::is_assignable<Framebuffer, const Framebuffer&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void FramebufferGLTest::constructMove() { void FramebufferGLTest::constructMove() {

4
src/Test/ImageTest.cpp

@ -63,11 +63,15 @@ void ImageTest::construct() {
} }
void ImageTest::constructCopy() { void ImageTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Image2D, const Image2D&>::value)); CORRADE_VERIFY(!(std::is_constructible<Image2D, const Image2D&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Image2D, const Image2D&>{})); CORRADE_VERIFY(!(std::is_assignable<Image2D, const Image2D&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void ImageTest::constructMove() { void ImageTest::constructMove() {

4
src/Test/MeshGLTest.cpp

@ -68,11 +68,15 @@ void MeshGLTest::construct() {
} }
void MeshGLTest::constructCopy() { void MeshGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Mesh, const Mesh&>::value)); CORRADE_VERIFY(!(std::is_constructible<Mesh, const Mesh&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Mesh, const Mesh&>{})); CORRADE_VERIFY(!(std::is_assignable<Mesh, const Mesh&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void MeshGLTest::constructMove() { void MeshGLTest::constructMove() {

4
src/Test/RenderbufferGLTest.cpp

@ -60,11 +60,15 @@ void RenderbufferGLTest::construct() {
} }
void RenderbufferGLTest::constructCopy() { void RenderbufferGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Renderbuffer, const Renderbuffer&>::value)); CORRADE_VERIFY(!(std::is_constructible<Renderbuffer, const Renderbuffer&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Renderbuffer, const Renderbuffer&>{})); CORRADE_VERIFY(!(std::is_assignable<Renderbuffer, const Renderbuffer&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void RenderbufferGLTest::constructMove() { void RenderbufferGLTest::constructMove() {

4
src/Test/ShaderGLTest.cpp

@ -70,11 +70,15 @@ void ShaderGLTest::construct() {
} }
void ShaderGLTest::constructCopy() { void ShaderGLTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Shader, const Shader&>::value)); CORRADE_VERIFY(!(std::is_constructible<Shader, const Shader&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Shader, const Shader&>{})); CORRADE_VERIFY(!(std::is_assignable<Shader, const Shader&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void ShaderGLTest::constructMove() { void ShaderGLTest::constructMove() {

4
src/Trade/Test/ImageDataTest.cpp

@ -61,11 +61,15 @@ void ImageDataTest::construct() {
} }
void ImageDataTest::constructCopy() { void ImageDataTest::constructCopy() {
#ifndef CORRADE_GCC44_COMPATIBILITY
CORRADE_VERIFY(!(std::is_constructible<Trade::ImageData2D, const Trade::ImageData2D&>::value)); CORRADE_VERIFY(!(std::is_constructible<Trade::ImageData2D, const Trade::ImageData2D&>::value));
/* GCC 4.6 doesn't have std::is_assignable */ /* GCC 4.6 doesn't have std::is_assignable */
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
CORRADE_VERIFY(!(std::is_assignable<Trade::ImageData2D, const Trade::ImageData2D&>{})); CORRADE_VERIFY(!(std::is_assignable<Trade::ImageData2D, const Trade::ImageData2D&>{}));
#endif #endif
#else
CORRADE_SKIP("Type traits needed to test this are not available on GCC 4.4.");
#endif
} }
void ImageDataTest::constructMove() { void ImageDataTest::constructMove() {

Loading…
Cancel
Save