Skip to content

Commit

Permalink
minor gnu fixups for sqlite wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
djmott committed Aug 29, 2016
1 parent 5ab44ae commit a5a136c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/xtd/sqlite.hpp
Expand Up @@ -180,7 +180,7 @@ namespace xtd{

template <int idx, typename _HeadT, typename ... _TailT> struct sqlite_command_params<idx, _HeadT, _TailT...>{
static void set(sqlite3 * pDB, sqlite3_stmt * st, const _HeadT& oHead, _TailT&&...oTail){
sqlite_field_binder<_HeadT>::set<idx>(pDB, st, oHead);
sqlite_field_binder<_HeadT>::template set<idx>(pDB, st, oHead);
sqlite_command_params<1 + idx, _TailT...>::set(pDB, st, std::forward<_TailT>(oTail)...);
}
};
Expand All @@ -192,7 +192,7 @@ namespace xtd{
friend class database;
sqlite3 * _pDatabase;
sqlite3_stmt * _pStatement;
command(sqlite3 * pDB, sqlite3_stmt * pStatement) : _pStatement(nullptr), _pDatabase(pDB){}
command(sqlite3 * pDB, sqlite3_stmt * pStatement) : _pDatabase(pDB), _pStatement(pStatement){}
public:
using pointer = std::shared_ptr<command>;
~command(){ if (_pStatement) sqlite3_finalize(_pStatement); }
Expand Down

0 comments on commit a5a136c

Please sign in to comment.