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

#include <functional> to fix clang compile error #387

Merged
merged 1 commit into from
Apr 12, 2017

Conversation

saschanaz
Copy link
Contributor

@saschanaz saschanaz commented Apr 11, 2017

The current code is failing to be compiled on Clang because of this error:

In file included from submodules/flif/src/library/flif-interface.cpp:1:
submodules/flif/src/library/flif-interface_dec.cpp:250:27: error: no member named 'function' in namespace 'std'
        auto func = (std::function<void ()> *) info->populateContext;
                     ~~~~~^
submodules/flif/src/library/flif-interface_dec.cpp:250:46: error: expected expression
        auto func = (std::function<void ()> *) info->populateContext;
                                             ^
2 errors generated.

Including <functional> fixes this issue.

@jonsneyers jonsneyers merged commit 6d0ce08 into FLIF-hub:master Apr 12, 2017
@saschanaz saschanaz deleted the patch-1 branch April 12, 2017 11:24
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