Commit adfa46c7 authored by Graham Inggs's avatar Graham Inggs

Fix C++11 compatibility, drop -std=gnu++98

parent 3931002c
qutemol (0.4.1~cvs20081111-7) UNRELEASED; urgency=medium
* Fix C++11 compatibility, drop -std=gnu++98 (Closes: #856406)
-- Graham Inggs <ginggs@debian.org> Fri, 11 Aug 2017 18:09:09 +0000
qutemol (0.4.1~cvs20081111-6) unstable; urgency=medium
* Add -std=gnu++98 to CXXFLAGS to fix FTBFS with GCC6,
......
Description: C++11 compatibility
Use C++11 static_assert instead of a macro for assert.
Bug-Debian: https://bugs.debian.org/856406
Forwarded: no
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2017-08-11
--- a/vcg/vcg/math/base.h
+++ b/vcg/vcg/math/base.h
@@ -93,11 +93,6 @@
#include <assert.h>
#include <limits.h>
-/// static_assert: implemented as a macro for "assert", but it is separated for clarity.
-/// Should be used for checking integrity constraints that can be tested at complile time,
-/// as the ones involving templated constants in templated classes.
-#define static_assert assert
-
#ifdef __BORLANDC__
float sqrtf (float v) {return sqrt(v);}
float fabsf (float v) {return fabs(v);}
......@@ -37,3 +37,4 @@
37_giflib5.patch
38_libpng15.patch
39_reproducible_build.patch
40_c++11_compatibility.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment