Boost logo

Boost :

From: Beman Dawes (beman_at_[hidden])
Date: 2000-03-16 14:07:41


At 10:33 AM 3/16/00 -0800, Miki Jovanovic wrote:

>> Wait, wait... I am using both template members and template
>functions. Two
>> examples:
>>
>> // constructor
>> template<typename D> SharedPtr( const SharedPtr<D>& ptr ) {
>> share( ptr );
>> }
>>
>> // operator
>> template<typename T, typename D>
>> bool operator==( const SharedPtr<T>& ptr1, const SharedPtr<D>&
ptr2 )
>{
>> return ptr1.ptr() == ptr2.ptr();
>> }
>>
>> They both work fine.
>>
>> I am sorry for joining the conversation late. I will look back to
>catch up
>> on the thread and make some cohesive comments. But the below
>statement: "Ok
>> MS VC++6 does not support template function" does not seem
correct.

VC++ has some limitations on member template support.

Argh! There is an email sitting in my "Boost Action Needed" folder
from Mark Borgerding with VC++ workarounds. I need to apply them.
That isn't the only fix pending; I will try to work through the
backlog in the next few days.

--Beman


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