This commit is contained in:
Hans Dembinski
2018-11-03 18:46:06 +01:00
parent 827e4793b5
commit ffbeabf43f
2 changed files with 7 additions and 12 deletions

View File

@@ -180,6 +180,7 @@ public:
using A = detail::unqual<decltype(a)>;
return detail::static_if<detail::has_method_value<A>>(
[idx](const auto& a) -> double {
using A = detail::unqual<decltype(a)>;
using U = detail::return_type<decltype(&A::value)>;
return detail::static_if<std::is_convertible<U, double>>(
[idx](const auto& a) -> double {