OSDN Git Service

include、それから typename TableType...
authormyun2 <myun2@nwhite.info>
Sun, 29 Jul 2012 09:29:32 +0000 (18:29 +0900)
committermyun2 <myun2@nwhite.info>
Sun, 29 Jul 2012 09:29:32 +0000 (18:29 +0900)
roast/include/roast/db/nitro/driver.hpp
roast/include/roast/db/nitro/tiny_db.hpp

index d2b7504..bff8eec 100644 (file)
@@ -15,6 +15,8 @@
 #define __SFJP_ROAST_db__nitro__driver_HPP__
 
 #include <string>
+#include "roast/db/nitro/constants.hpp"
+#include "roast/db/nitro/variables.hpp"
 
 namespace roast
 {
@@ -22,6 +24,7 @@ namespace roast
        {
                ///////////////////////////////////////////////////
                
+               template <typename TableType>
                class driver
                {
                public:
@@ -29,7 +32,7 @@ namespace roast
                        {
                                static const int file = 0;
                                static const int memory = 1;
-                       }
+                       };
                        
                private:
                        int m_type;
index 0119b21..9df0e8e 100644 (file)
@@ -5,5 +5,6 @@
 #ifndef __SFJP_ROAST_db__nitro__tiny_db_HPP__
 #define __SFJP_ROAST_db__nitro__tiny_db_HPP__
 
+#include "roast/db/nitro/driver.hpp"
 
 #endif//__SFJP_ROAST_db__nitro__tiny_db_HPP__