From: David Abrahams (abrahams_at_[hidden])
Date: 2000-10-19 13:26:34
Sorry, I don't understand. Since all template member functions are inline in
MSVC, how can they interact with anything at link time?
----- Original Message -----
From: "Schaible, Joerg" <Joerg.Schaible_at_[hidden]>
Sent: Thursday, October 19, 2000 1:55 PM
Subject: RE: [boost] shared_ptr hierarchy question
as I posted earlier in the messages 2635 mensioned below: You cannot export
classes with member templates from a DLL. In my case I have a lot of classes
using smart pointers that are exported from a DLL. If you enable the member
templates this is no longer possible because MSVC tries to import the new
instance of the member template from that DLL that contains the export of
the instanciated class.
So I have great objections removing BOOST_MSVC6_MEMBER_TEMPLATES !
> -----Original Message-----
> From: David Abrahams [mailto:abrahams_at_[hidden]]
> Sent: Thursday, October 19, 2000 6:20 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] shared_ptr hierarchy question
> In that case, is there any objection to accepting the version of
> smart_ptr.hpp recently posted by Peter Dimov as the official version?
> just-trying-to-get-uniform-funcitonality-ly y'rs,
> ----- Original Message -----
> From: <scleary_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Thursday, October 19, 2000 11:48 AM
> Subject: RE: [boost] shared_ptr hierarchy question
> > > If that is the only problem, then it is indeed not
> specific to member
> > > templates at all. But please, can someone recall the /specific/
> > > which resulted in our not enabling member templates for
> > > smart_ptr.hpp with MSVC?
> > Here's some messages from the thread "MSVC template
> weirdness" (these deal
> > with template issues of several kinds with MSVC -- not just member
> > templates):
> > http://www.egroups.com/message/boost/2635
> > http://www.egroups.com/message/boost/2637
> > http://www.egroups.com/message/boost/2640
> > However, in this case, I don't think any of them apply,
> except we need to
> > define the template versions before non-template versions.
> > The decision to define BOOST_NO_MEMBER_TEMPLATES and also define
> > BOOST_MSVC6_MEMBER_TEMPLATES was made at:
> > http://www.egroups.com/message/boost/2718
> > -Steve
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk