Cast lambda to function pointer for boost::split().
authorPeter Griess <pgriess@fb.com>
Thu, 26 Sep 2013 15:05:57 +0000 (10:05 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:47:25 +0000 (18:47 -0700)
commit443652777459d54c8cb5eac1c49d19b7a2218e6a
tree53457e6ccf8a002c0339c8bd043239d9cc672c90
parent69b46104294b1cccaeafc2c88a67e9c7f9543962
Cast lambda to function pointer for boost::split().

Summary:
- For some reason, Boost's internals aren't considering this lambda a
type that's castable. Cast it to a function pointer before using it.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac
- _bin/folly/test/string_test --benchmark

Reviewed By: alandau@fb.com

FB internal diff: D998594
folly/test/StringTest.cpp