Cast lambda to function pointer for boost::split().