| 1 | Description: C++11 compatibility |
| 2 | Use C++11 static_assert instead of a macro for assert. |
| 3 | Bug-Debian: https://bugs.debian.org/856406 |
| 4 | Forwarded: no |
| 5 | Author: Graham Inggs <[email protected]> |
| 6 | Last-Update: 2017-08-11 |
| 7 | --- a/vcg/vcg/math/base.h |
| 8 | +++ b/vcg/vcg/math/base.h |
| 9 | @@ -93,11 +93,6 @@ |
| 10 | #include <assert.h> |
| 11 | #include <limits.h> |
| 12 | |
| 13 | -/// static_assert: implemented as a macro for "assert", but it is separated for clarity. |
| 14 | -/// Should be used for checking integrity constraints that can be tested at complile time, |
| 15 | -/// as the ones involving templated constants in templated classes. |
| 16 | -#define static_assert assert |
| 17 | - |
| 18 | #ifdef __BORLANDC__ |
| 19 | float sqrtf (float v) {return sqrt(v);} |
| 20 | float fabsf (float v) {return fabs(v);} |