Skip to content

Feature request: move-assignment operator for Statement #347

@Fytch

Description

@Fytch

(See #190)

The explicitly deleted copy-assignment operator of SQLite::Statement stops the compiler from generating a move-assignment operator for this type. On a related note, having a default constructor would also be nice. Consider the following example that I would wish to be able to write:

struct foo
{
	SQLite::Database db;
	SQLite::Statement st;

	foo()
		: db(path, SQLite::OPEN_READWRITE)
	{
		// do stuff with db
		st = SQLite::Statement("SQL CODE");
	}
};

Currently, I have to box all statements that I use in this way into optionals. Ugly!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions