fix folly::NotificationQueue for move-only value types
authorSven Over <over@fb.com>
Fri, 12 Aug 2016 21:18:46 +0000 (14:18 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Fri, 12 Aug 2016 21:23:27 +0000 (14:23 -0700)
commite8308aaf329b26d07e36a0c1b0f97073a4270eb9
tree942e6a931ffcd0119b605831993096ffd4f4dac5
parent4cf30a1441af267ee42ab2fc9976dc3332f36ed8
fix folly::NotificationQueue for move-only value types

Summary:
folly::NotificationQueue::tryConsume did not compile for
move-only types such as folly::Function. This diff fixes that.

Reviewed By: andriigrynenko

Differential Revision: D3711406

fbshipit-source-id: a52eba3eb31743165e4726f830f2a38d241f25a5
folly/io/async/NotificationQueue.h