Boost logo

Boost :

From: Eric Friedman (ebf_at_[hidden])
Date: 2003-08-10 02:33:50


Dave (and others):

Eric Friedman wrote:
> David Abrahams wrote:
> >
> > Hi,
> >
> > BOOST_EXPLICIT_TEMPLATE_TYPE is great!
> >
> > However:
> [snip]
> > // specialization
> > template <>
> > int f<void>( /*what goes here?*/ )
> > {
> >
> > }
> >
> > we have no mechanism for handling these. Any ideas?
>
> Wouldn't BOOST_EXPLICIT_TEMPLATE_TYPE(void) work?

Ooops, you're right. Guess I don't know the standard well enough.

I've added BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC (and so on) helper macros to
address this problem (in config/suffix.hpp) since it's actually been
creating problems with variant under gcc. Let me know if this solution
doesn't meet your expectations.

Thanks,
Eric


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