From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-08-16 06:48:44
> Yes there is: these 'functions' generally consist of
>a large set of specialisations, and they fail to work
>immediately you supply an argument for which there is no
>specialisation, so you have to 'augment' the function
>with a suitable specialisation. Such specialisations
>are effectively global data: the template is in NO WAY
>generic, it is in fact a huge switch over global case data.
Maybe I should just point out that all the type-traits templates are
intended to work "as is" with all types, including UDT's, without additions
or modifications. There are a few cases where this doesn't quite work -
usually due to compiler bugs - but sometimes due to language
impossibilities (is_union is the main pain in the neck here).
- John Maddock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk