Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > ABI backward compatibility

Reply
Thread Tools

ABI backward compatibility

 
 
=?iso-8859-1?q?Ernesto_Basc=F3n?=
Guest
Posts: n/a
 
      10-31-2006
Hi:

I've read some about the pimpl idiom and I know that it provides safe
ABI backward compatibility on shared libraries.

Let's consider the following definitions:

template <class T>
class A
{
public:
A()
{
}

virtual ~A()
{
}

T GetValue() const
{
return mValue;
}

private:
T mValue;
};


class B
{
public:
B(const A<int>& aA)
{
mValue = aA.GetValue();
}

private:
int mValue;
};


How can I provide ABI compatibility in this case, considering that I
cannot use the pimpl idiom in my template class implementation?

Thanks in advance,


Ernesto

 
Reply With Quote
 
 
 
 
=?iso-8859-1?q?Ernesto_Basc=F3n?=
Guest
Posts: n/a
 
      11-01-2006
Please heeeeelp!!!!!



Ernesto Bascón ha escrito:

> Hi:
>
> I've read some about the pimpl idiom and I know that it provides safe
> ABI backward compatibility on shared libraries.
>
> Let's consider the following definitions:
>
> template <class T>
> class A
> {
> public:
> A()
> {
> }
>
> virtual ~A()
> {
> }
>
> T GetValue() const
> {
> return mValue;
> }
>
> private:
> T mValue;
> };
>
>
> class B
> {
> public:
> B(const A<int>& aA)
> {
> mValue = aA.GetValue();
> }
>
> private:
> int mValue;
> };
>
>
> How can I provide ABI compatibility in this case, considering that I
> cannot use the pimpl idiom in my template class implementation?
>
> Thanks in advance,
>
>
> Ernesto


 
Reply With Quote
 
 
 
 
=?iso-8859-1?q?Ernesto_Basc=F3n?=
Guest
Posts: n/a
 
      11-02-2006
Is there anybody out there?



Ernesto Bascón wrote:
> Please heeeeelp!!!!!
>
>
>
> Ernesto Bascón ha escrito:
>
> > Hi:
> >
> > I've read some about the pimpl idiom and I know that it provides safe
> > ABI backward compatibility on shared libraries.
> >
> > Let's consider the following definitions:
> >
> > template <class T>
> > class A
> > {
> > public:
> > A()
> > {
> > }
> >
> > virtual ~A()
> > {
> > }
> >
> > T GetValue() const
> > {
> > return mValue;
> > }
> >
> > private:
> > T mValue;
> > };
> >
> >
> > class B
> > {
> > public:
> > B(const A<int>& aA)
> > {
> > mValue = aA.GetValue();
> > }
> >
> > private:
> > int mValue;
> > };
> >
> >
> > How can I provide ABI compatibility in this case, considering that I
> > cannot use the pimpl idiom in my template class implementation?
> >
> > Thanks in advance,
> >
> >
> > Ernesto


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA2 backward compatibility with WPA: TKIP and/or AES? =?Utf-8?B?U2NvdCBCYWxmb3Vy?= Wireless Networking 0 10-05-2005 06:15 PM
ASP 2.0 backward compatibility to 1.0 Maziar Aflatoun ASP .Net 3 04-13-2005 12:32 AM
Backward compatibility problem JimD Wireless Networking 3 11-28-2004 05:50 AM
Netscape - Backward compatibility testing =?Utf-8?B?TUxpYmJ5?= ASP .Net 1 09-06-2004 03:38 AM
Backward North America still...backward! Richard DVD Video 17 08-19-2004 04:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57