Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 22, 2018

Matthieu Longo and others added 2 commits July 16, 2018 12:35
class BasicStep has virtual functions but no virtual destructor. If it
is never deleted by pointer then its destructor can be protected
non-virtual instead of public virtual.

See http://www.gotw.ca/publications/mill18.htm Guideline 4

Comments are updated to mention #195 when using clang
@ghost ghost changed the title Fix #195 Fix #207 and close #195 Dec 22, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 62.485% when pulling 96d7538 on sergey-bon:fix-issue-195 into f799908 on cucumber:master.

@ghost ghost changed the title Fix #207 and close #195 Fix #207, close #195: Build problems when unit tests or examples are enabled (clang, Visual Studio) Dec 25, 2018
@ghost ghost requested review from muggenhor and paoloambrosio December 25, 2018 16:13
@paoloambrosio
Copy link
Member

Thanks for contribution and links.

I'd rather keep #195, given that there is no real reason to prevent destruction from base pointer, so I'll close this in favour of the earlier PR.

@ghost ghost deleted the fix-issue-195 branch December 28, 2018 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants