Boost logo

Boost Users :

Subject: [Boost-users] reference to ‘_1’ is ambiguous
From: Sandeep Gupta (gupta.sandeep_at_[hidden])
Date: 2009-03-17 23:46:48

 This problem has appeared before on the list but in a different
context. The following code

 std::vector<int> myvec;
 for_each(myvec, std::cout<<_1<<' ');

 gives the error:

Serializer.h:78: error: reference to ‘_1’ is ambiguous
/home/sandeep/Computing/boost_1_38_0/boost/lambda/core.hpp:69: error:
candidates are: const boost::lambda::placeholder1_type&
error: boost::arg<1> <unnamed>::_1
Serializer.h:78: error: reference to ‘_1’ is ambiguous

I believe boost/bind is getting included indirectly via some other
library. I have tried several modification but none seem to work as I
was quite reluctant to post a third mail on the list.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at