Skip to content

Commit

Permalink
remove nodiscard for resolve_xxx functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackMATov committed Feb 13, 2024
1 parent af6697e commit 245f784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions headers/meta.hpp/meta_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ namespace meta_hpp
}

template < typename T >
[[nodiscard]] auto resolve_type() {
auto resolve_type() {
using namespace detail;
type_registry& registry = type_registry::instance();
return registry.resolve_by_type<std::remove_cv_t<T>>();
}

template < typename T >
// NOLINTNEXTLINE(*-missing-std-forward)
[[nodiscard]] auto resolve_type(T&& from) {
auto resolve_type(T&& from) {
using namespace detail;

using raw_type = std::remove_cvref_t<T>;
Expand Down Expand Up @@ -67,7 +67,7 @@ namespace meta_hpp
registry.for_each_scope(std::forward<F>(f));
}

[[nodiscard]] inline scope resolve_scope(std::string_view name) {
inline scope resolve_scope(std::string_view name) {
using namespace detail;
state_registry& registry = state_registry::instance();
return registry.resolve_scope(name);
Expand Down

0 comments on commit 245f784

Please sign in to comment.