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]

oh, those wacky naming conventions



I'm in the midst of cleaning up stl_deque.h, and just noticed deque::at()
was (wrongly) coded to throw std::range_error instead of std::out_of_range.

No idea how long it's been like that.  It's an understandable mistake.
I would never have noticed if I didn't have stl_vector.h also open in an
adjacent window as a reminder.

Which LWG members decided to have two unrelated exception classes with
such similar confusing names?  Those people should be ashamed...


Phil
P.S.- SGI consistently throws range_error everywhere.  Oops.

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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