resolve c2146 on vs15 with area_result declaration

This commit is contained in:
Pranam Lashkari
2020-09-05 22:16:28 +05:30
parent 869e72fc01
commit 055684bc41

View File

@@ -46,9 +46,10 @@ template
bool IsUmbrella = strategies::detail::is_umbrella_strategy<Strategy>::value
>
struct area_result
: decltype(std::declval<Strategy>().area(std::declval<Geometry>()))
::template result_type<Geometry>
{};
{
typedef decltype(std::declval<Strategy>().area(std::declval<Geometry>())) strategy_type;
typedef typename strategy_type::template result_type<Geometry>::type type;
};
template
<