1
0
blueloveTH 3 жил өмнө
parent
commit
8b368904f4
1 өөрчлөгдсөн 2 нэмэгдсэн , 4 устгасан
  1. 2 4
      src/safestl.h

+ 2 - 4
src/safestl.h

@@ -135,10 +135,8 @@ namespace pkpy {
         ~Args(){ _free(); }
     };
 
-    const Args& no_arg(){
-        static const Args ret(0);
-        return ret;
-    }
+    static const Args _zero(0);
+    inline const Args& no_arg() { return _zero; }
 
     template<typename T>
     Args one_arg(T&& a) {