Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-15 08:03:07


From: "David Abrahams" <dave_at_[hidden]>
> "Peter Dimov" <pdimov_at_[hidden]> writes:
>
> > Bind now supports an alternative syntax that creates fewer problems with
> > MSVC 6/7. Instead of
> >
> > boost::bind<R>(f, ...)
> >
> > you can now use
> >
> > boost::bind(boost::type<R>(), f, ...)
>
> Specifically, any use of explicitly-specified function template
> arguments will cause MSVC6 (and 7?) to "reserve" the name of the
> function template, so that it cannot be used in another namespace to
> define a class template, e.g.: [...]

Actually I believe it's the other way around, the class template "reserves"
the name, and it cannot be used in a function call with explicitly specified
template arguments. Either way, it breaks. :-) (Yes, the bug is in MSVC 7,
too.)


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