Compare commits

..

No commits in common. "6b948ee0697e237beb67c8a29ff6f695ca067bfe" and "7c824e910c61383b3124cd563c4b08f7717eaec3" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -219,11 +219,9 @@ template<typename T>
constexpr Error TypeDescWriter::field(CRStringView name, const T *val) noexcept {
if (m_type) {
if constexpr(isVector_v<T> || isArray_v<T>) {
typename T::value_type *data = nullptr;
return field(name, data, 0, detail::buildSubscriptStack(val));
return field(name, val->data(), 0, detail::buildSubscriptStack(val));
} else if constexpr(isSmartPtr_v<T>) {
typename T::value_type *data = nullptr;
return field(name, data, 0, detail::buildSubscriptStack(val));
return field(name, val->get(), 0, detail::buildSubscriptStack(val));
} else if constexpr(is_pointer_v<T>) {
return field(name, val, 0, detail::buildSubscriptStack(val));
} else {

View File

@ -74,7 +74,6 @@ class SharedPtr {
int *m_refCnt = nullptr;
public:
using value_type = T;
explicit constexpr SharedPtr(T *t = nullptr) noexcept: m_t(t), m_refCnt(new int) {
}
@ -184,7 +183,6 @@ class UniquePtr {
T *m_t = nullptr;
public:
using value_type = T;
explicit constexpr UniquePtr(T *t = nullptr) noexcept: m_t(t) {
}