Fix a folly build failure under clang: MPMCQueueTest.cpp.
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 21 Jul 2014 21:31:09 +0000 (14:31 -0700)
committerChip Turner <chip@fb.com>
Fri, 25 Jul 2014 16:06:14 +0000 (09:06 -0700)
commita9a0480402b4d95a1303817f457cb8c3ac0493dd
treebbb1a5f512719fae89b66af44d5af2afaf3a0d9e
parent3c001a310e3339a99c386f4db4f68098257222a5
Fix a folly build failure under clang: MPMCQueueTest.cpp.

Summary:
[Folly] Fix a folly build failure under clang: MPMCQueueTest.cpp.

In clang-v3.4, there is a bug with the combination of a lambda expression inside a function template taking a template name (rather than a type name) as a template argument.

This diff, in the interest of building folly under clang-v3.4, extracts the lambda expression into a separate function so that the function template taking a template name as a template argument no longer has a lambda expression in it.

Test Plan: Build folly/test/MPMCQueueTest.cpp under clang.

Reviewed By: njormrod@fb.com

Subscribers: mathieubaudet, dougw

FB internal diff: D1446279

Tasks: 4723132
folly/test/MPMCQueueTest.cpp