]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2946] get access to base class's static method via 'this' pointer
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 16 May 2013 05:41:27 +0000 (22:41 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 16 May 2013 05:41:27 +0000 (22:41 -0700)
as some compilers don't allow direct use of Base::method.

src/lib/asiodns/tests/dns_server_unittest.cc

index 9a9e55f163664a55b05646a16dbe28b5fde9a100..2b7093551bc943bb144eccd8a04f4245c58b3458 100644 (file)
@@ -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();