
Steven Watanabe wrote:
AMDG
Sohail Somani wrote:
Though, thinking about it a bit further, if you were to annex the boost::placeholders namespace for bind's placeholders, maybe the other library authors would support what is in that namespace with their libraries. <hand_waving>How hard can it be?</hand_waving> I guess only they know.
Given that boost::bind is also at the top level, I don't see a problem with putting bind's placeholders in boost::placeholders. It should only require a few template specializations to make Lambda and Phoenix recognize them. The only issue is that as Peter mentioned, _1 + _1 won't work.
Why doesn't bind support the other placeholders instead? As you have indicated, they have more functionality. -- Sohail Somani http://uint32t.blogspot.com