From: JINMEI Tatuya Date: Thu, 16 May 2013 05:41:27 +0000 (-0700) Subject: [2946] get access to base class's static method via 'this' pointer X-Git-Tag: bind10-1.2.0beta1-release~452^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49ef97d8a1b783a35a81db555eadbea985b84a11;p=thirdparty%2Fkea.git [2946] get access to base class's static method via 'this' pointer as some compilers don't allow direct use of Base::method. --- diff --git a/src/lib/asiodns/tests/dns_server_unittest.cc b/src/lib/asiodns/tests/dns_server_unittest.cc index 9a9e55f163..2b7093551b 100644 --- a/src/lib/asiodns/tests/dns_server_unittest.cc +++ b/src/lib/asiodns/tests/dns_server_unittest.cc @@ -779,8 +779,7 @@ TEST_F(SyncServerTest, resetUDPServerBeforeEvent) { (*udp_server_)(); udp_server_->stop(); udp_server_.reset(); - void (*prev_handler)(int) = - std::signal(SIGALRM, DNSServerTestBase::stopIOService); + void (*prev_handler)(int) = std::signal(SIGALRM, this->stopIOService); current_service = &service; alarm(IO_SERVICE_TIME_OUT); service.run();