Topic: Exception spec [w:C++ a better C?]
Author: Francis Glassborow <francis.glassborow@ntlworld.com>
Date: Thu, 7 Jun 2001 21:31:15 GMT Raw View
In article <3b1fa733@andromeda.datanet.hu>, Balog Pal (mh) <pasa@lib.hu>
writes
>Francis Glassborow wrote in message <4btraIAsjoH7EwLU@ntlworld.com>...
>
>>Exactly how do you use exception specification with templates?
>
>
>Most discussions I read about exception specifications agree they're useless
>or just pure evil. Also I notice some compilers just not implement them
>beyond the parser level.
>
>It they really turned out a fiasco shouldn't they be removed from the
>language in a future standard? Or leave only a single spec to indicate
>nothrow?
Possibly, they certainly need reconsideration (my choice would be to
consider making them statically enforceable) But that is beside the
point, my comment was purely show how exceptions (which include
exceptions specs) interact with templates - not only making them pretty
useless but actually unuseable (for templates)
Francis Glassborow ACCU
64 Southfield Rd
Oxford OX4 1PA +44(0)1865 246490
All opinions are mine and do not represent those of any organisation
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: "Balog Pal (mh)" <pasa@lib.hu>
Date: Thu, 7 Jun 2001 17:42:25 GMT Raw View
Francis Glassborow wrote in message <4btraIAsjoH7EwLU@ntlworld.com>...
>Exactly how do you use exception specification with templates?
Most discussions I read about exception specifications agree they're useless
or just pure evil. Also I notice some compilers just not implement them
beyond the parser level.
It they really turned out a fiasco shouldn't they be removed from the
language in a future standard? Or leave only a single spec to indicate
nothrow?
Paul
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]