diff options
Diffstat (limited to 'libcommon/common/common.hxx')
-rw-r--r-- | libcommon/common/common.hxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/libcommon/common/common.hxx b/libcommon/common/common.hxx index 2cf2357..da3737a 100644 --- a/libcommon/common/common.hxx +++ b/libcommon/common/common.hxx @@ -12,7 +12,6 @@ #include <odb/forward.hxx> // odb::database #include <odb/result.hxx> -#include <common/config.hxx> #include <common/export.hxx> // Make sure assert() is not disabled. @@ -32,18 +31,8 @@ create_database (int& argc, // template <typename T> std::size_t -size (odb::result<T>& r) -{ - std::size_t n (0); -#if defined(DATABASE_SQLITE) || \ - defined(DATABASE_ORACLE) || \ - defined(DATABASE_MSSQL) - for (typename odb::result<T>::iterator i (r.begin ()); i != r.end (); ++i) - n++; -#else - n = r.size (); -#endif - return n; -} +size (odb::result<T>&); + +#include <common/common.txx> #endif // LIBCOMMON_COMMON_COMMON_HXX |