Boost logo

Boost :

From: Mat Marcus (mmarcus_at_[hidden])
Date: 2001-12-15 19:10:30


>Okay, I'll do it if you'll let me steal your code and text.

Sure.

>
>Am I right that the following pattern is what triggers the ICE?
>
>template <class UnaryMetaFunction, class T>
>struct X
>{
> // VC can't handle template-argument-dependent template 'apply'
> ... UnaryMetaFunction::template apply<T>::type ...;
>};

Yes. Maybe a header file with a generalized n-ary function (like
mpl::unaryfunction) could provide a good "broken compiler portable"
idiom.

>And the workaround is illegal because you're not allowed to explicitly
>specialize a nested template inside an unspecialized template. Right?

Yes.


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