Skip to content

Commit

Permalink
sqlite.hpp:
Browse files Browse the repository at this point in the history
 - fix to missing const reference
 - fix to missing public visibility of enable_shared_from_this
  • Loading branch information
djmott committed Aug 13, 2016
1 parent 40e05f4 commit 5e3c4cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/xtd/sqlite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace xtd{

}

inline static void _throw_err(xtd::source_location& where, int test, const char * source){
inline static void _throw_err(const xtd::source_location& where, int test, const char * source){
if (SQLITE_OK!=test) {
throw exception(where, test, source);
}
Expand Down Expand Up @@ -105,9 +105,9 @@ namespace xtd{
/**
sqlite3 database
*/
class database : std::enable_shared_from_this<database>{
class database : public std::enable_shared_from_this<database>{
sqlite3 * _pDB;
database(const xtd::filesystem::path& oPath){
explicit database(const xtd::filesystem::path& oPath){
exception::throw_err(sqlite3_open(oPath.string().c_str(), &_pDB));
}
public:
Expand All @@ -127,4 +127,4 @@ namespace xtd{
}
}

#pragma pop_macro("throw_err")
#pragma pop_macro("throw_err")

0 comments on commit 5e3c4cf

Please sign in to comment.