// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include namespace Nz { template FunctorWithoutArgs::FunctorWithoutArgs(F func) : m_func(func) { } template void FunctorWithoutArgs::Run() { m_func(); } template FunctorWithArgs::FunctorWithArgs(F func, Args&&... args) : m_func(func), m_args(std::forward(args)...) { } template void FunctorWithArgs::Run() { Apply(m_func, m_args); } template MemberWithoutArgs::MemberWithoutArgs(void (C::*func)(), C* object) : m_func(func), m_object(object) { } template void MemberWithoutArgs::Run() { (m_object->*m_func)(); } }