Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/meta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3391,7 +3391,7 @@
\effects
Equivalent to:
\begin{codeblock}
return extract<const ranges::range_value_t<R>*>(meta::reflect_constant_string(r));
return meta::extract<const ranges::range_value_t<R>*>(meta::reflect_constant_string(r));
\end{codeblock}
\end{itemdescr}

Expand All @@ -3408,8 +3408,8 @@
\begin{codeblock}
using T = ranges::range_value_t<R>;
meta::info array = meta::reflect_constant_array(r);
if (is_array_type(type_of(array))) {
return span<const T>(extract<const T*>(array), extent(type_of(array)));
if (meta::is_array_type(meta::type_of(array))) {
return span<const T>(meta::extract<const T*>(array), meta::extent(meta::type_of(array)));
} else {
return span<const T>();
}
Expand All @@ -3428,8 +3428,8 @@
Equivalent to:
\begin{codeblock}
using U = remove_cvref_t<T>;
if constexpr (is_class_type(^^U)) {
return addressof(extract<const U&>(meta::reflect_constant(std::forward<T>(t))));
if constexpr (meta::is_class_type(^^U)) {
return addressof(meta::extract<const U&>(meta::reflect_constant(std::forward<T>(t))));
} else {
return define_static_array(span(addressof(t), 1)).data();
}
Expand Down