2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-19 02:12:24 +00:00

fix typedef of task_object in packaged_task

This commit is contained in:
Oliver Kowalke
2015-12-07 18:45:36 +01:00
parent f23cad16af
commit 398cb6fd48

View File

@@ -52,7 +52,7 @@ public:
template< typename Fn, typename Allocator >
explicit packaged_task( std::allocator_arg_t, Allocator const& alloc, Fn && fn) {
typedef detail::task_object<
Fn, Allocator, R, Args ...
std::decay_t< Fn >, Allocator, R, Args ...
> object_t;
typedef std::allocator_traits<
typename object_t::allocator_t