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

Updated Signal.hpp - added fix for C++11 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inobelar
Copy link

For making psychic-ui::signals much portable (in case of standalone usage) - added small fix to make it compilable with C++11.

In Signal::unsubscribe(), inside of std::remove_if(), in lambda used 'auto' item type. That's not allowed in C++11. Used explicit type.
Also added 'const qualifiers' where them needed.
Also added missing #include for std::shared_ptr

For making `psychic-ui::signals` much portable (in case of standalone usage) - added small fix to make it compilable with C++11.

In Signal::unsubscribe(), inside of std::remove_if(), in lambda used 'auto' item type. That's not allowed in C++11. Used explicit type.
Also added 'const qualifiers' where them needed. 
Also added missing #include <memory> for  std::shared_ptr<T>
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.

1 participant