@@ -77,7 +77,7 @@ namespace detail
77
77
};
78
78
79
79
template <const std::string_view&... Strs>
80
- inline constexpr std::string_view join ()
80
+ constexpr std::string_view join ()
81
81
{
82
82
constexpr auto joined_arr = []() {
83
83
constexpr size_t len = (Strs.size () + ... + 0 );
@@ -178,14 +178,14 @@ elisp functions to fill the ToTuple function
178
178
179
179
template <class T , size_t N = CountMembers<T>>
180
180
requires (N <= MaxReflectionMemerCount)
181
- inline constexpr decltype (auto ) ToTuple(T&& t) noexcept
181
+ constexpr decltype (auto ) ToTuple(T&& t) noexcept
182
182
{
183
183
if constexpr (N == 0 )
184
184
return std::tuple {};
185
185
// clang-format off
186
186
else if constexpr (N == 1 )
187
187
{
188
- auto & [p0] = t;
188
+ auto & [p0] = std::forward<T>(t); // TODO: We need to fix the gen script and apply that to all the cases below
189
189
return std::tie (p0);
190
190
}
191
191
else if constexpr (N == 2 )
@@ -795,7 +795,7 @@ std::string Inspect(std::vector<Object> const& objects)
795
795
}
796
796
797
797
template <typename Object, typename Callback>
798
- void CollectDifferences (const Object& lhs, const Object& rhs, Callback& & callback)
798
+ void CollectDifferences (const Object& lhs, const Object& rhs, Callback const & callback)
799
799
{
800
800
template_for<0 , CountMembers<Object>>([&]<auto I>() {
801
801
if constexpr (std::equality_comparable<MemberTypeOf<I, Object>>)
@@ -814,7 +814,7 @@ void CollectDifferences(const Object& lhs, const Object& rhs, Callback&& callbac
814
814
815
815
template <typename Object, typename Callback>
816
816
requires std::same_as<void , std::invoke_result_t <Callback, size_t , MemberTypeOf<0 , Object>, MemberTypeOf<0 , Object>>>
817
- void CollectDifferences (const Object& lhs, const Object& rhs, Callback& & callback)
817
+ void CollectDifferences (const Object& lhs, const Object& rhs, Callback const & callback)
818
818
{
819
819
template_for<0 , CountMembers<Object>>([&]<auto I>() {
820
820
if constexpr (std::equality_comparable<MemberTypeOf<I, Object>>)
0 commit comments