Skip to content
New issue

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

Restrict destructors #80

Merged
merged 5 commits into from
Jul 12, 2018
Merged

Conversation

kiciek
Copy link
Contributor

@kiciek kiciek commented Jul 11, 2018

2 things:
1 - Only in fsm_state specialization for 0 events get_fsm_context was not protected.
2 - ifsm_state destructor is already protected. fsm_state should have virtual destructor or it's destructor should also be protected. Same for Observable. There is probably more of this but I only use this two.

acwik and others added 5 commits July 11, 2018 09:25
Changed protected destructor in observble to use C++03 syntax.
Minor formatting changes
Minor format changes
@jwellbelove jwellbelove merged commit f541da6 into ETLCPP:master Jul 12, 2018
@kiciek kiciek deleted the restrict-destructors branch July 13, 2018 07:30
jwellbelove pushed a commit that referenced this pull request Jul 27, 2018
* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/private/minmax_pop.h

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	test/vs2017/etl.vcxproj.filters

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/version.h
#	support/Release notes.txt

* Fixed endif and namespace ending mismatch (#74)

* Merge remote-tracking branch 'origin/development'

* Merge remote-tracking branch 'origin/development'

* Update library.properties (#76)

* Merge remote-tracking branch 'origin/development'

* Updated version

* Added MIT licence

* Update README.md

* Added master link

* Update README.md

* Merge remote-tracking branch 'origin/development'

* Merge remote-tracking branch 'origin/development'

* Fix license formatting so it will be recognized (#78)

GitHub uses the licensee ruby gem to detect the license type of the repository. licensee uses the license texts from choosealicense.com so if the text of your license file differs from their license it will not be recognized. GitHub allows filtering searches by license type and also shows the license type on the homepage of your repository and when viewing the license page but these features are only available when the license is recognized.

* Merge remote-tracking branch 'origin/development'

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/version.h
#	support/Release notes.txt

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/private/ivectorpointer.h
#	include/etl/version.h
#	src/private/pvoidvector.cpp
#	support/Release notes.txt
#	test/test_vector_pointer.cpp

* Restrict destructors (#80)

* hide observable destructor

* hide fsm_state destructor, get_fsm_context in 0 specialisation made protected

* Update observer.h

Changed protected destructor in observble to use C++03 syntax.

* Update fsm.h

Minor formatting changes

* Update fsm_generator.h

Minor format changes

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/version.h
#	support/Release notes.txt

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/private/pvoidvector.h

* Merge remote-tracking branch 'origin/development'

# Conflicts:
#	include/etl/memory.h
#	include/etl/version.h
#	support/Release notes.txt

* Use etl/ prefixed includes in sources and tests

ETL is supposed to be included using #include <etl/header.h>
according to the changelog entry from Sunday, March 18, 2018.

This change updates the tests and etl source files to use
the same style.

This allows compiling etl as part of a separate project (git submodule)
using the same flags as for user code that includes etl.

Signed-off-by: Martin Sivak <mars@montik.net>
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.

2 participants