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