Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-08-10 19:29:04


"Eric Friedman" <ebf_at_[hidden]> writes:

> 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! The next time I need this, I'll look at what you've done.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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