Explorar el Código

Update safestl.h

blueloveTH hace 3 años
padre
commit
8b368904f4
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      src/safestl.h

+ 2 - 4
src/safestl.h

@@ -135,10 +135,8 @@ namespace pkpy {
         ~Args(){ _free(); }
         ~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>
     template<typename T>
     Args one_arg(T&& a) {
     Args one_arg(T&& a) {