Boost logo

Boost :

From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2004-11-22 19:05:36

I replaced my home grown result_type<> with boost::result_of<> today only to
find that I couldn't get it to work. When I try to use result_of with VC

   struct test_struct {

      typedef int result_type;

   boost::result_of<test_struct>::type i = 5;

I get:

   test.cpp(10) : error C2027: use of undefined type 'boost::result_of<F>'

I get the same results if I use function types of pointer to function types:

   boost::result_of<int (*)()>::type i = 5;
   boost::result_of<int ()()>::type i = 5;

Am I missing something?

Brock Peabody

Boost list run by bdawes at, gregod at, cpdaniel at, john at