iwongu / sqlite3pp

SQLite3++ - C++ wrapper of SQLite3 API
MIT License
609 stars 177 forks source link

Fix build for MSVC 2013 #44

Closed eclazi closed 7 years ago

eclazi commented 7 years ago

MSVC doesn't support default move constructors. Only declare default move constructors for supported compilers.

eclazi commented 7 years ago

Fixes following compiler errors with MSVC 2013 Update 4

 error C2610: 'sqlite3pp::noncopyable::noncopyable(sqlite3pp::noncopyable &&)' : is not a special member function which can be defaulted
 error C2610: 'sqlite3pp::noncopyable &sqlite3pp::noncopyable::operator =(sqlite3pp::noncopyable &&)' : is not a special member function which can be defaulted
iwongu commented 7 years ago

Sorry for your inconvenience, but I'm trying to keep this macro-free code so far. Please fork repo and fix in it.