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

remove cv-qualifiers for function passed to packaged_task

This commit is contained in:
Oliver Kowalke
2015-12-13 14:21:54 +01:00
parent 742467f938
commit 5753122693

View File

@@ -46,7 +46,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 ...
typename std::decay< Fn >::type, Allocator, R, Args ...
> object_t;
typedef std::allocator_traits<
typename object_t::allocator_t