Use NSDMIs for Realm::Config and make it moveable

This commit is contained in:
Thomas Goyne 2015-08-24 13:12:49 -07:00 committed by Ari Lazier
parent 5c1e20a7b1
commit d6566ff3c1
1 changed files with 5 additions and 4 deletions

View File

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