change template type of pool_core::add_task()