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 <> 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.
Forwarded: no
Author: Graham Inggs <>
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 @@
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