
26 Aug
2019
26 Aug
'19
11:01 a.m.
On 8/26/19 5:39 PM, Phil Endecott via Boost-users wrote:
Can anyone suggest how I can write my specialisations so that they are unambiguous?
By adding another level of indirection. Create your own trait template. Let both the generalization and your specialization redirect to polygon_traits. Something like this (warning untested code ahead) template <typename T, typename Enable = void> struct my_polygon_traits : public polygon_traits<T, Enable> { }; template <std::size_t N> struct my_polygon_traits<std::array<Point, N>> : public polygon_traits<std::array<Point, N>> { };