dangerous use of boost::bind

Dear all,
In my work I use the boost libraries quite frequently, especially boost::bind to create function objects. However its use is not as transparent as I hoped for. Especially using functions in boost bind with signatures returning const& can give unpredictable results.
For example:
struct KX
{
KX (int i);
//etc.
};
typedef std::pair
participants (2)
-
Gast 128
-
Peter Dimov