Opened 9 years ago
#9661 new Bugs
bind: Convert lost qualifier
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | bind |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | bind | Cc: | vs2013 |
Description
The following code doesn't compile with vs2013. It will be OK if boost::bind is replaced with std::bind or using less placeholders.
#include <boost/bind.hpp> void foo(int&, int, int){} int main(){ using boost::bind; int a; auto&& f = bind(&foo, _1, _2, _3); f(a, 0, 0); return 0; }
Note:
See TracTickets
for help on using tickets.