If you use pointers, you must not use boost::ref