From 2e034baad230f8425dab29723f9903de051463cd Mon Sep 17 00:00:00 2001 From: Myun2 Date: Wed, 16 May 2012 03:36:14 +0900 Subject: [PATCH] =?utf8?q?touch=20=E9=96=A2=E6=95=B0=E3=82=92=20file=5Ffun?= =?utf8?q?cs.hpp=20=E3=81=B8=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/file/file.hpp | 8 -------- roast/include/roast/file/file_funcs.hpp | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roast/include/roast/file/file.hpp b/roast/include/roast/file/file.hpp index 3579d57e..1484c52e 100644 --- a/roast/include/roast/file/file.hpp +++ b/roast/include/roast/file/file.hpp @@ -23,14 +23,6 @@ namespace roast file(){} file(const char* str) : m_path(str){} file(const ::std::string& str) : m_path(str){} - - bool touch(const char* filename){ - FILE* fp = fopen(filename, "a"); - if ( fp == NULL ) - return false; - fclose(fp); - return true; - } }; } diff --git a/roast/include/roast/file/file_funcs.hpp b/roast/include/roast/file/file_funcs.hpp index 6e528f0a..5c7b510c 100644 --- a/roast/include/roast/file/file_funcs.hpp +++ b/roast/include/roast/file/file_funcs.hpp @@ -260,6 +260,14 @@ inline int GetDriveType(const char* szPath){ + bool touch(const char* filename){ + FILE* fp = fopen(filename, "a"); + if ( fp == NULL ) + return false; + fclose(fp); + return true; + } + _ROAST_NS_END -- 2.11.0