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

missing functional header in Configuration.h #1

Open
pi3076021fdt opened this issue Oct 7, 2017 · 1 comment
Open

missing functional header in Configuration.h #1

pi3076021fdt opened this issue Oct 7, 2017 · 1 comment

Comments

@pi3076021fdt
Copy link

pi3076021fdt commented Oct 7, 2017

Using GCC 7.1 the following errors were thrown
n file included from /home/build/temp/TeeTime-Cpp/src/Configuration.cpp:16:0: /home/build/temp/TeeTime-Cpp/src/../include/teetime/Configuration.h:146:90: error: ‘std::function’ has not been declared static shared_ptr<FunctionObjectStage<TIn, TOut>> createStageFromFunctionObject(std::function<TOut(TIn)> f, const char* name = "function_object") ^~~~~~~~ /home/build/temp/TeeTime-Cpp/src/../include/teetime/Configuration.h:146:98: error: expected ‘,’ or ‘...’ before ‘<’ token static shared_ptr<FunctionObjectStage<TIn, TOut>> createStageFromFunctionObject(std::function<TOut(TIn)> f, const char* name = "function_object") ^ /home/build/temp/TeeTime-Cpp/src/../include/teetime/Configuration.h: In static member function ‘static std::shared_ptr<teetime::FunctionObjectStage<TIn, TOut> > teetime::Configuration::createStageFromFunctionObject(int)’: /home/build/temp/TeeTime-Cpp/src/../include/teetime/Configuration.h:148:58: error: ‘f’ was not declared in this scope return createStage<FunctionObjectStage<TIn, TOut>>(f, name); ^ /home/build/temp/TeeTime-Cpp/src/../include/teetime/Configuration.h:148:61: error: ‘name’ was not declared in this scope return createStage<FunctionObjectStage<TIn, TOut>>(f, name); ^~~~
Upon inspection of Configuration.h, it is clear that functional is missing. I searched through the implicitly included header and couldn't find functional. I added #include <functional> to Configuration.h and compilation succeeded.. It strange, because my VS2017 compiles fine without the functional header. I some sort of implicit include occurs in VS.

@eXistence
Copy link
Member

thanks for reporting the issue, i will look into it :)

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

No branches or pull requests

2 participants