OSDN Git Service

io/handle_manage.hpp: is_opened() が無さそうだったので、実装
authormyun2 <myun2@nwhite.info>
Wed, 11 Jul 2012 12:49:20 +0000 (21:49 +0900)
committermyun2 <myun2@nwhite.info>
Wed, 11 Jul 2012 12:49:20 +0000 (21:49 +0900)
roast/include/roast/io/handle_manage.hpp

index a4401c6..8240b08 100644 (file)
@@ -70,6 +70,8 @@ namespace roast
                
                ////////////////////////////////////////////////////
                
+               bool is_opened() const { return m_handle == _Impl::invalid_handle; }
+               
                _HandlerType get_handle(){ return m_handle; }
                const _HandlerType get_handle() const { return m_handle; }