This commit is contained in:
@@ -101,9 +101,9 @@ public:
|
||||
}
|
||||
|
||||
template<std::size_t I>
|
||||
InputPort<MainThreadNode, I> input() {
|
||||
InputPort<Derived, I> input() {
|
||||
static_assert(I < input_count, "input index out of range");
|
||||
return {*this};
|
||||
return {static_cast<Derived&>(*this)};
|
||||
}
|
||||
|
||||
template<fixed_string Name>
|
||||
|
||||
Reference in New Issue
Block a user