File: gcc7.patch

package info (click to toggle)
libclaw 1.7.4-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,080 kB
  • sloc: cpp: 13,287; sh: 227; makefile: 8
file content (41 lines) | stat: -rw-r--r-- 1,547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Markus Koschany <apo@debian.org>
Date: Thu, 17 Aug 2017 22:06:24 +0200
Subject: gcc7

Fix FTBFS with GCC7.

Bug-Debian: https://bugs.debian.org/853488
Origin: https://src.fedoraproject.org/rpms/libclaw/blob/master/f/libclaw-1.7.4-gcc7.patch
---
 claw/impl/box_2d.tpp    | 4 ++--
 claw/impl/rectangle.tpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/claw/impl/box_2d.tpp b/claw/impl/box_2d.tpp
index e4b6936..71f3883 100644
--- a/claw/impl/box_2d.tpp
+++ b/claw/impl/box_2d.tpp
@@ -136,8 +136,8 @@ template<typename U>
 claw::math::box_2d<U> claw::math::box_2d<T>::cast_value_type_to() const
 {
   return claw::math::box_2d<U>
-    ( first_point.cast_value_type_to<U>(),
-      second_point.cast_value_type_to<U>() );
+    ( first_point.template cast_value_type_to<U>(),
+      second_point.template cast_value_type_to<U>() );
 } // box_2d::cast_value_type_to()
 
 /*----------------------------------------------------------------------------*/
diff --git a/claw/impl/rectangle.tpp b/claw/impl/rectangle.tpp
index 9e6f14a..3c3c8f3 100644
--- a/claw/impl/rectangle.tpp
+++ b/claw/impl/rectangle.tpp
@@ -140,7 +140,7 @@ template<typename U>
 claw::math::rectangle<U> claw::math::rectangle<T>::cast_value_type_to() const
 {
   return claw::math::rectangle<U>
-    ( position.cast_value_type_to<U>(), (U)width, (U)height );
+    ( position.template cast_value_type_to<U>(), (U)width, (U)height );
 } // rectangle::cast_value_type_to()
 
 /*----------------------------------------------------------------------------*/