Skip to content

Commit 640dff2

Browse files
committed
Fix msvc build
1 parent 6beb965 commit 640dff2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/src/5-modular-source.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace kangaru {
1717

1818
template<typename MakeHeadSource, typename... Constructed>
1919
requires callable<detail::type_traits::call_result_t<make_strict_spread_injector_function, injection_source<Constructed...>>, MakeHeadSource>
20-
auto construct_head_source(MakeHeadSource&& make_head, Constructed... constructed) {
20+
inline constexpr auto construct_head_source(MakeHeadSource&& make_head, Constructed... constructed) {
2121
return make_strict_spread_injector(with_recursion{with_construction{compose(constructed...), exhaustive_constructor{}}})(std::move(make_head));
2222
}
2323

@@ -159,17 +159,17 @@ namespace kangaru {
159159
};
160160

161161
template<source Source, typename... Lambdas>
162-
auto make_modular_source(Source source, Lambdas... lambdas) {
162+
inline constexpr auto make_modular_source(Source source, Lambdas... lambdas) {
163163
return modular_source<Source, Lambdas...>{std::move(source), lambdas...};
164164
}
165165

166166
template<source... Sources, source Source>
167-
auto make_modular_source(Source source) {
167+
inline constexpr auto make_modular_source(Source source) {
168168
return modular_source<Source, kangaru::constructor_function<Sources>...>{std::move(source), kangaru::constructor_function<Sources>{}...};
169169
}
170170

171171
template<source... Sources>
172-
auto make_modular_source() {
172+
inline constexpr auto make_modular_source() {
173173
return modular_source<none_source, kangaru::constructor_function<Sources>...>{none_source{}, kangaru::constructor_function<Sources>{}...};
174174
}
175175

0 commit comments

Comments
 (0)