Skip to content

Conversation

Philipp2405
Copy link

added private assigment operator to Exception class to avoid MSVC warning: C4512: 'SQLite::Exception' : assignment operator could not be generated ...' --> only created at warning level 4 !

…ning: C4512: 'SQLite::Exception' : assignment operator could not be generated ...'
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.231% when pulling 125386e on Philipp2405:master into f69986a on SRombauts:master.

@SRombauts SRombauts self-assigned this Apr 7, 2017
@SRombauts
Copy link
Owner

Hi, sorry for not answering, I am not sure that this is the best fix for this warning...

@fekir
Copy link
Contributor

fekir commented Aug 19, 2017

HI,

subclasses of std::exception should have an assignment operator (I would actually expect that every class that has a copy constructor also to have an assignment operator).

I've added such operator in PR #138, this should also fix the warning of Philipp2405

@SRombauts
Copy link
Owner

Thanks @fekir!

As PR #138 is merge I can now close this. Sorry for the delay @Philipp2405

Cheers!

@SRombauts SRombauts closed this Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants