|
|
@@ -19,7 +19,7 @@ namespace entt {
|
|
|
*/
|
|
|
template<typename Type>
|
|
|
[[nodiscard]] meta_type resolve(const meta_ctx &ctx) noexcept {
|
|
|
- auto &&context = internal::meta_context::from(ctx);
|
|
|
+ const auto &context = internal::meta_context::from(ctx);
|
|
|
return {ctx, internal::resolve<std::remove_cv_t<std::remove_reference_t<Type>>>(context)};
|
|
|
}
|
|
|
|
|
|
@@ -39,7 +39,7 @@ template<typename Type>
|
|
|
* @return An iterable range to use to visit all meta types.
|
|
|
*/
|
|
|
[[nodiscard]] inline meta_range<meta_type, typename decltype(internal::meta_context::value)::const_iterator> resolve(const meta_ctx &ctx) noexcept {
|
|
|
- auto &&context = internal::meta_context::from(ctx);
|
|
|
+ const auto &context = internal::meta_context::from(ctx);
|
|
|
return {{ctx, context.value.cbegin()}, {ctx, context.value.cend()}};
|
|
|
}
|
|
|
|
|
|
@@ -83,7 +83,7 @@ template<typename Type>
|
|
|
* @return The meta type associated with the given type info object, if any.
|
|
|
*/
|
|
|
[[nodiscard]] inline meta_type resolve(const meta_ctx &ctx, const type_info &info) noexcept {
|
|
|
- auto &&context = internal::meta_context::from(ctx);
|
|
|
+ const auto &context = internal::meta_context::from(ctx);
|
|
|
const auto *elem = internal::try_resolve(context, info);
|
|
|
return (elem != nullptr) ? meta_type{ctx, *elem} : meta_type{};
|
|
|
}
|