Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-12-08 09:17:31


From: "David Abrahams" <david.abrahams_at_[hidden]>
> How do I name a function type (as opposed to a reference or pointer to
function)?

The type of a function taking int and returning int is

int (int)

Function types used in template parameters take precedence over values:

X<int()> // int() is a function type, not the constant 0

--
Peter Dimov
Multi Media Ltd.

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