In a static method, C++ picks up the wrong CkAbort-- it tries to
authorOrion Lawlor <olawlor@acm.org>
Wed, 6 Mar 2002 17:23:21 +0000 (17:23 +0000)
committerOrion Lawlor <olawlor@acm.org>
Wed, 6 Mar 2002 17:23:21 +0000 (17:23 +0000)
use ArrayElement::CkAbort, but you want the global ::CkAbort.
Thus I've added an explicit override.

src/libs/ck-libs/tcharm/tcharm.C

index 9657823b3af14d06526d1ab908dbbbde386f7e0e..7de5ea9a98abedb93e4e0c59775b18980f86ed47 100644 (file)
@@ -219,7 +219,7 @@ void TCharm::ResumeFromSync(void)
 void TCharm::check(void)
 {
        if (getState()!=inDriver)
-               CkAbort("TCharm> Can only use that routine from within driver!\n");
+               ::CkAbort("TCharm> Can only use that routine from within driver!\n");
 }
 #endif