diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-09 18:14:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-09 18:14:37 +0200 |
commit | 644cba591ff6ec046ac4274b7c343dead847736e (patch) | |
tree | 70574b1ca044af28bccb01be7b4126aff3a63b42 /odb/database.cxx | |
parent | f18ea631bbe47a116a6b8ad6da5ab10a5be8158f (diff) |
Make database class move-constructible
This means it can be returned by value from a function in C++11.
Diffstat (limited to 'odb/database.cxx')
-rw-r--r-- | odb/database.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/database.cxx b/odb/database.cxx index 2ce15b2..7ea8313 100644 --- a/odb/database.cxx +++ b/odb/database.cxx @@ -27,7 +27,7 @@ namespace odb const database::schema_version_migration_type& database:: schema_version_migration (const string& name) const { - lock l (mutex_); // Prevents concurrent loading. + lock l (*mutex_); // Prevents concurrent loading. schema_version_map::const_iterator i (schema_version_map_.find (name)); return i != schema_version_map_.end () && i->second.version != 0 |