Parcourir la source

[2946] simplified the previous fix further: just use it without any prefix.

as stopIOService public any (non templated) derived class can use it.
this seems to be the simplest and portable way to build it.
JINMEI Tatuya il y a 12 ans
Parent
commit
7831eb91e8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/asiodns/tests/dns_server_unittest.cc

+ 1 - 1
src/lib/asiodns/tests/dns_server_unittest.cc

@@ -779,7 +779,7 @@ TEST_F(SyncServerTest, resetUDPServerBeforeEvent) {
     (*udp_server_)();
     (*udp_server_)();
     udp_server_->stop();
     udp_server_->stop();
     udp_server_.reset();
     udp_server_.reset();
-    void (*prev_handler)(int) = std::signal(SIGALRM, this->stopIOService);
+    void (*prev_handler)(int) = std::signal(SIGALRM, stopIOService);
     current_service = &service;
     current_service = &service;
     alarm(IO_SERVICE_TIME_OUT);
     alarm(IO_SERVICE_TIME_OUT);
     service.run();
     service.run();