[Qt-interest] Library binary compatibility issue

Giacomo S. giacomo.strangolino at elettra.trieste.it
Fri May 21 10:12:11 CEST 2010


Hi to all!

A question about binary compatibility issue in a library of mine:

class Reader
{
  ...
  protected:
	virtual void refresh(const TVariant&) = 0;
}

class Label : public QLabel, public Reader
{
	...
	protected:
		void refresh(const TVariant&) ; /* implement refresh */
}

Later on, I discovered that it would be useful for classes inheriting
Label to reimplement refresh() method.

Does changing refresh() into 

class Label : public QLabel, public Reader
{
	...
	protected:
	virtual void refresh(const TVariant&); /* make it virtual */
}

into Label class break binary compatibility for classes using the Label
object in the library??

I had a look at 

http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C
++#The_Do.27s_and_Don.27ts

but did not found the case.

Thanks in advance.

Giacomo.

Sincrotrone Trieste S.C.p.A. di interesse nazionale
Strada Statale 14 - km 163,5 in AREA Science Park
34149 Basovizza, Trieste ITALY
Tel. 040 375 8073




More information about the Qt-interest-old mailing list