Skip to content

Commit

Permalink
Use NSDMIs for Realm::Config and make it moveable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Sep 9, 2015
1 parent a91839b commit b4f856b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shared_realm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit b4f856b

Please sign in to comment.