stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <far...@apache.org>
Subject std::length_error in language support library
Date Fri, 21 Aug 2009 16:34:20 GMT
  Looking at the latest draft of the C++ standard (n2914.pdf) it appears,
that
the std::length_error can be defined in language support library.

  This is the result of resolution of the CWG issue #624:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#624

5.4.3 p7:
--------------
7 When the value of the expression in a noptr-new-declarator is zero, the
allocation function is called to
allocate an array with no elements. If the value of that expression is such
that the size of the allocated object
would exceed the implementation-defined limit, no storage is obtained and
the new-expression terminates
by throwing an exception of a type that would match a handler (15.3) of type
std::length_error (19.2.4).
--------------

Farid


Mime
View raw message