[omniORB] "// some compilers get upset" in objectRef.cc

Mikhail Soukhanov mik@astra.relline.ru
Thu, 25 Mar 1999 17:02:06 +0300


Hello!

I have found the following comment at the end of objectRef.cc file:

class ProxyObjectTableCleaner {
public: // some compilers get upset	<<<
  ~ProxyObjectTableCleaner();
  static ProxyObjectTableCleaner theInstance;
};
ProxyObjectTableCleaner ProxyObjectTableCleaner::theInstance;

Borland C++Builder certainly *do* get upset by hanging when compiling
this source.

The place is not clear to me. Why the instance inside its class? Is the
following construct equivalent to the above as a workaround:

class ProxyObjectTableCleaner {
public: // some compilers get upset
  ~ProxyObjectTableCleaner();
};
static ProxyObjectTableCleaner theInstance;

Any hints will be appreciated.

Best regards,
		Mikhail
-- 
Mikhail Soukhanov <mailto:mik@astra.relline.ru.>

Laboratory of Geoinformatics, VNIIgeosystem
Warszawskoje chaussee 8, Moscow M-105, 113105 Russia
Tel.: +7(095) 954-00-31, fax.: +7(095) 958-35-22
W.W.W.: <http://astra.relline.ru./>