Patch taken from upstream and edited for use in Fedora: commit 6033275773313fe052f6e222321a8ec87587fbe6 Author: Julien Jorge Date: Thu Apr 24 20:39:18 2014 +0200 Fix various errors pointed by clang on iOS. 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 claw::math::box_2d claw::math::box_2d::cast_value_type_to() const { return claw::math::box_2d - ( first_point.cast_value_type_to(), - second_point.cast_value_type_to() ); + ( first_point.template cast_value_type_to(), + second_point.template cast_value_type_to() ); } // 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 claw::math::rectangle claw::math::rectangle::cast_value_type_to() const { return claw::math::rectangle - ( position.cast_value_type_to(), (U)width, (U)height ); + ( position.template cast_value_type_to(), (U)width, (U)height ); } // rectangle::cast_value_type_to() /*----------------------------------------------------------------------------*/