OSDN Git Service

function_holder.hpp: function_object
authormyun2 <myun2@nwhite.info>
Sat, 14 Jul 2012 15:27:53 +0000 (00:27 +0900)
committermyun2 <myun2@nwhite.info>
Sat, 14 Jul 2012 15:27:53 +0000 (00:27 +0900)
roast/include/roast/tp/function_holder.hpp

index 50ec195..52c6132 100644 (file)
@@ -13,9 +13,13 @@ namespace roast
        template <typename _Class>
        class function_object
        {
-       
+       private:
+               _Class m_obj;
        public:
-               function_object(_Class& c) : 
+               function_object(_Class& c) : m_obj(c) {}
+               
+               _Class& obj(){ return m_obj; }
+               const _Class& obj() const { return m_obj; }
        };
        
        //////////////////////////////////////////////////