Boost logo

Boost :

From: Nicolai Josuttis (nicolai.josuttis_at_[hidden])
Date: 1999-07-01 03:28:19


Dave Abrahams wrote:
>
> Can someone justify the following in compose.hpp?
>
> #ifndef __SGI_STL_INTERNAL_FUNCTION_H
> # define compose1 compose_f_gx
> # define compose2 compose_f_gx_hx
> #endif
>
> Why would anyone do that?
>
> ------------------------------------------------------------------------
> Just Tell Us What You Want...
> Respond.com - Shopping the World for You!
> http://clickhere.egroups.com/click/390
>
> eGroups.com home: http://www.egroups.com/group/boost
> http://www.egroups.com - Simplifying group communications

This is to honor the fact that the SGI implementation
uses compose1 and compose2 instead of compose_f_gx and compose_f_gx_hx
for years now to stay compatible with code that was written with that
library.
You can call it a "SGI STL compatibility hack".
We can remove it if people have problems with it.
However, as the idea of compose functors came from the SGI STL implementation
...

-- 
Nicolai M. Josuttis
Solutions in Time
http://www.josuttis.de/
mailto:solutions_at_[hidden]
------------------------------------------------------------------------
eGroups.com home: http://www.egroups.com/group/boost
http://www.egroups.com - Simplifying group communications

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk