Help out boost::result_of by providing a result_type typedef.

This fixes a compilation error with gcc 4.7.