Is it possible to mix std :: and boost :: bind and :: function to cause problems?

I think there is no answer to this question, but I just want to be sure.

If I have std::functionas a parameter in a function, is there a problem with passing to boost::bindand vice versa?

edit:

I found that placeholders used by boost :: bind are imported directly into the namespace when you include boost \ bind.h, and they are incompatible with std :: bind. For std :: bind, you must explicitly refer to placeholders: std :: placeholders :: _ 1, or make another typedef or use magic to make them available at the same time.

+5
source share
1 answer

. std:: ( boost::) function , , , lambdas, . , .

, , .

+10

All Articles