This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bind1st fails to compile when argument type is a constant reference


UÅytkownik Jonathan Wakely napisaÅ:

And yes, in order to implement a clean fix you need to use metaprogramming
features of TR1, so it is more reasonable to use |tr1:: bind| instead.  The
only problem with that is it is insufficiently documented in API.
I'll improve the docs.
It would be awesome if you could also have a look at this section of the manual:


Chapter 9. Functors

If you don't know what functors are, you're not alone. Many people get slightly the wrong idea. In the interest of not reinventing the wheel, we will refer you to the introduction to the functor concept written by SGI as part of their STL, in their http://www.sgi.com/tech/stl/functors.html <http://www.sgi.com/tech/stl/functors.html>.

------------------------------------------------------------------------

That site does not mention general binding at all.

Thanks,
Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]