Commit a1127594 authored by Xavier Thompson's avatar Xavier Thompson

Fix Cy_Ref cypclass smart pointer metafunction causing 'incomplete type' compilation error

parent 0760a6ab
......@@ -256,17 +256,14 @@
};
}
template <typename T, bool = std::is_convertible<T*, CyObject*>::value>
struct Cy_Ref_t {};
template <typename T>
struct Cy_Ref_t<T, true> {
struct Cy_Ref_t {
using type = Cy_Ref_impl<T>;
};
template <typename T>
struct Cy_Ref_t<T, false> {
using type = T;
struct Cy_Ref_t<Cy_Ref_impl<T>> {
using type = Cy_Ref_impl<T>;
};
template <typename T>
......
Markdown is supported
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