
18 Apr
2012
18 Apr
'12
9:58 a.m.
On 18/04/12 11:09, Michael Kochetkov wrote:
The approach you suggest is not well-formed C++ and is specific to your particular configuration; it might fare worst on others. Why it is not well-formed C++?
I've already pointed out why.
The people I deal with in the real world do not think about its weight. They just cannot memorize boost::_bi::bind_t<int,int (*)(int),boost::_bi::list1<boost::arg<1> > > and type it correctly. So they use boost::function just for convenience.
The good thing to do, as with all similar mechanisms (lambda, phoenix), is to avoid naming the result entirely or using auto/decltype/typeof facilities.