Skip to content

Commit

Permalink
provide overload in test_dist_deduction_guides.cpp for GCC-8
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfolberth committed Feb 6, 2022
1 parent 5b259de commit 7b09b2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_dist_deduction_guides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ void test_deduction_guide(Types... types)
static_assert(std::is_same<typename decltype(d)::value_type, PromType>::value);
}

// GCC-8 doesn't like deduction guides + empty variadic template? Handjam this overload
template <template<class, class> class DistType, class PromType = double>
void test_deduction_guide()
{
DistType d;
static_assert(std::is_same<typename decltype(d)::value_type, PromType>::value);
}

int main()
{
using namespace boost::math;
Expand Down

0 comments on commit 7b09b2c

Please sign in to comment.