Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-06-25 06:21:33


The regression logs show this error message from vc7

    http://tinyurl.com/39fgc

which says that pointer to function can be converted to boost::function

The relevant code is:

   int stored_value;
   void notifier(const vector<int>& v)
   {
       stored_value = v.front();
   }

   void test_semantic_values()
   {
       ....
       ("int", po::value< vector<int> >()->notifier(notifier))
        ;
   }

Where the 'notifier' member function is defines as:

        typed_value* notifier(function1<void, const T&> f)

and in this case, T = vector<int>.

Any ideas what I can do to make this work?

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk