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

4
src/Test/AbstractShaderProgramGLTest.cpp

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

4
src/Test/AbstractTextureGLTest.cpp

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

4
src/Test/BufferGLTest.cpp

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

4
src/Test/BufferImageGLTest.cpp

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

4
src/Test/FramebufferGLTest.cpp

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

4
src/Test/ImageTest.cpp

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

4
src/Test/MeshGLTest.cpp

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

4
src/Test/RenderbufferGLTest.cpp

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

4
src/Test/ShaderGLTest.cpp

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

4
src/Trade/Test/ImageDataTest.cpp

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

Loading…
Cancel
Save