Use NSDMIs for Realm::Config and make it moveable

This commit is contained in:
Thomas Goyne 2015-08-24 13:12:49 -07:00
parent a91839bf7e
commit b4f856bdd0
1 changed files with 5 additions and 4 deletions

View File

@ -43,16 +43,17 @@ namespace realm {
struct Config struct Config
{ {
std::string path; std::string path;
bool read_only; bool read_only = false;
bool in_memory; bool in_memory = false;
std::unique_ptr<char[]> encryption_key; std::unique_ptr<char[]> encryption_key;
std::unique_ptr<Schema> schema; std::unique_ptr<Schema> schema;
uint64_t schema_version; uint64_t schema_version = ObjectStore::NotVersioned;
MigrationFunction migration_function; MigrationFunction migration_function;
Config() : read_only(false), in_memory(false), schema_version(ObjectStore::NotVersioned) {}; Config() = default;
Config(Config&&) = default;
Config(const Config& c); Config(const Config& c);
}; };