Кресты / Говнокод #28408 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
template<typename ProcessT, typename... Args>
			requires (!std::derived_from<ProcessT, Process<ProcessT>>)
		ProcessT& startProcess(processing::Processor& processor, Args&&... args)
		{	
			processor.template getProcess<ProcessT>(processor.template attach<ProcessT>(args...));
		}

		template<typename ProcessT, typename... Args>
			requires std::derived_from<ProcessT, Process<ProcessT>>
		ProcessT& startProcess(processing::Processor& processor, Args&&... args)
		{
			processor.template getProcess<ProcessT>(processor.template attach<ProcessT>(
				static_cast<T*>(this)->entity, args...));
		}

Ко мне вернулось вдохновение

Запостил: kcalbCube kcalbCube, (Updated )

Комментарии (6) RSS

Добавить комментарий

Помни, guest, за тобой могут следить!

    А не использовать ли нам bbcode?


    8