Skip to content

bind is not a member of std:: #4

@guilhermesena1

Description

@guilhermesena1

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,
                                                         ^~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions