wareHHOuse / diskpp

DiSk++, a C++ library for Hybrid High-Order (HHO) and Discontinuous Galerkin skeletal methods
Other
14 stars 11 forks source link

Patched generic_element to make it work with GCC. #80

Closed datafl4sh closed 3 years ago

datafl4sh commented 3 years ago

GCC does not accept

template<size_t A, size_t B>
class my_template
{};

template<size_t A>
class my_template<A, A-1>
{};

whereas Clang does. This problem was affecting the implementation of generic_element. I solved the problem with an ugly hack abusing CRTP. I am truly sorry for that, generic_element is getting worse and worse.