Added boost::ref to example.