From 71b2c6cd30b7715e3678f4bb1ed4fba67f6b797e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 19 Nov 2022 13:35:42 +0100 Subject: constantly should be public API --- entity/metadata.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entity/metadata.hpp b/entity/metadata.hpp index 8bd36cb8..b425d0a1 100644 --- a/entity/metadata.hpp +++ b/entity/metadata.hpp @@ -68,19 +68,19 @@ struct find_reader { using type = F; static con template using find_reader2 = find_reader; -template -constexpr auto constantly = [](const Obj&) constexpr { return constant; }; - } // namespace floormat::entities::detail namespace floormat::entities { +template +constexpr auto constantly = [](const Obj&) constexpr { return constant; }; + template struct entity_field_base {}; template R, FieldWriter W, typename... Ts> struct entity_field : entity_field_base { private: - static constexpr auto default_predicate = detail::constantly; + static constexpr auto default_predicate = constantly; using default_predicate_t = std::decay_t; using c_predicate = detail::find_reader; using c_range = detail::find_reader2, Ts...>; -- cgit v1.2.3