We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong move ctor for SandwichD:
SandwichD
auto foo = SandwichDB(); // foo.meta.sandwich points to foo foo->Open(/*...*/); auto boo = std::move(foo); // boo.meta.sandwich points to *old* foo
Because meta copied as is instead of being re-created in new place it will refer to freed memory used for old SandwichDB.
SandwichDB
The text was updated successfully, but these errors were encountered:
Unit-test for both gcc 4.7 and 4.8:
TEST(Simple, sandwich_move_issue14) { auto db = std::move(leveldb::SandwichDB<leveldb::MemoryDB> {}); (void) db.use("alpha"); }
Sorry, something went wrong.
fix move ctor for SandwichDB
54403c6
Expose and fix github issue #14
No branches or pull requests
Wrong move ctor for
SandwichD
:Because meta copied as is instead of being re-created in new place it will refer to freed memory used for old
SandwichDB
.The text was updated successfully, but these errors were encountered: