Explorar o código

fix #485: Error returned a reference to a temporary object

ithewei hai 1 ano
pai
achega
a2ed77ee51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      evpp/TcpServer.h

+ 1 - 1
evpp/TcpServer.h

@@ -287,7 +287,7 @@ public:
         stop(true);
     }
 
-    const EventLoopPtr& loop(int idx = -1) {
+    EventLoopPtr loop(int idx = -1) {
         return TcpServerEventLoopTmpl<TSocketChannel>::loop(idx);
     }