Boost logo

Boost :

Subject: Re: [boost] [function] Question on semantics of boost::function
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-17 18:34:03


AMDG

David Sankel wrote:
> Is a boost::function<void (int)> semantically different from
> a boost::function<void (int &)>

Yes. The signature of a boost::function behaves
exactly the same way as the signature of a normal
function.

> or a boost::function<void (const int)>?
>

No. boost::function<void(int)> is the same type
as boost::function<void(const int)>.

In Christ,
Steven Watanabe


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