ソースを参照

Update safestl.h

blueloveTH 3 年 前
コミット
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) {