|
|
@@ -144,12 +144,10 @@ public:
|
|
|
|
|
|
/**
|
|
|
* @brief Schedules a process for the next tick.
|
|
|
- * @tparam Proc Type of process to schedule.
|
|
|
- * @param proc The actual process to schedule.
|
|
|
+ * @param proc a process to schedule.
|
|
|
* @return A reference to the newly assigned process.
|
|
|
*/
|
|
|
- template<typename Proc>
|
|
|
- type &attach(std::shared_ptr<Proc> proc) {
|
|
|
+ type &attach(std::shared_ptr<type> proc) {
|
|
|
ENTT_ASSERT(proc, "Null process not allowed");
|
|
|
return *handlers.first().emplace_back(std::move(proc));
|
|
|
}
|