Why a try/catch in priority_queue::push/pop?!?

Howard Hinnant hhinnant@apple.com
Thu Aug 3 22:33:00 GMT 2006


On Aug 3, 2006, at 4:04 PM, Paolo Carlini wrote:

> Paolo Carlini wrote:
>
>> Hi Howard,
>>
>>>> I think the try/catch is very old, coming from the HP/SGI STL,   
>>>> maybe I missing historical facts which I'd like to know...  
>>>> Anyone  helping?
>>>
>>>
>>> <shakes head> Can't blame this one on HP/SGI, just checked, no- 
>>> try/ catch there. :-)
>>
>> I see... But I can find the strange beast already in libstdc++-v2,  
>> in gcc2.95.3, a *lot* of time! (admittedly I never played myself  
>> with the original HP/SGI STL, as distributed from the SGI web  
>> site, for example, only some friends of mine did...)
>
> But... I think I can see it:
>
>    http://www.sgi.com/tech/stl/stl_queue.h
>
> ???

Interesting.  I was looking at file called stack.h which only has the  
'94 HP copyright.  Looks like SGI added it.

I still disagree with it. :-)

-Howard



More information about the Libstdc++ mailing list