Commit 1b11ecff authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Changed all explicit intersections from ray to line intersections and added...

Changed all explicit intersections from ray to line intersections and added default conversions from line to ray
parent 49b66510
......@@ -35,7 +35,19 @@ template <>
struct priority_tag<0>
{
};
// see https://stackoverflow.com/questions/44395169/why-is-sfinae-on-if-constexpr-not-allowed
template <template <class...> class, class, class...>
struct can_apply : std::false_type
{
};
template <template <class...> class Z, class... Ts>
struct can_apply<Z, std::void_t<Z<Ts...>>, Ts...> : std::true_type
{
};
} // namespace detail
template <template <class...> class Z, class... Ts>
constexpr bool can_apply = detail::can_apply<Z, void, Ts...>::value;
template <class...>
constexpr bool always_false = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment