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

bind is not a member of std:: #4

Open
guilhermesena1 opened this issue Apr 19, 2019 · 0 comments
Open

bind is not a member of std:: #4

guilhermesena1 opened this issue Apr 19, 2019 · 0 comments
Assignees

Comments

@guilhermesena1
Copy link

when I compile with g++ 7.3.0 I get the following error:

scale_tree.cpp: In function ‘int main(int, const char**)’:
scale_tree.cpp:106:22: error: ‘bind’ is not a member of ‘std’
                 std::bind(std::divides<double>(), std::placeholders::_1,
                      ^~~~
scale_tree.cpp:106:22: note: suggested alternative: ‘find’
                 std::bind(std::divides<double>(), std::placeholders::_1,
                      ^~~~
                      find
scale_tree.cpp:106:56: error: ‘std::placeholders’ has not been declared
                 std::bind(std::divides<double>(), std::placeholders::_1,
                                                        ^~~~~~~~~~~~
scale_tree.cpp:110:22: error: ‘bind’ is not a member of ‘std’
                 std::bind(std::multiplies<double>(), std::placeholders::_1,
                      ^~~~
scale_tree.cpp:110:22: note: suggested alternative: ‘find’
                 std::bind(std::multiplies<double>(), std::placeholders::_1,
                      ^~~~
                      find
scale_tree.cpp:110:59: error: ‘std::placeholders’ has not been declared
                 std::bind(std::multiplies<double>(), std::placeholders::_1,
                                                           ^~~~~~~~~~~~
scale_tree.cpp:115:20: error: ‘bind’ is not a member of ‘std’
               std::bind(std::multiplies<double>(), std::placeholders::_1,
                    ^~~~
scale_tree.cpp:115:20: note: suggested alternative: ‘find’
               std::bind(std::multiplies<double>(), std::placeholders::_1,
                    ^~~~
                    find
scale_tree.cpp:115:57: error: ‘std::placeholders’ has not been declared
               std::bind(std::multiplies<double>(), std::placeholders::_1,
                                                         ^~~~~~~~~~~~
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