Re: C++ pushback
- From: Jan Harkes <jaharkes@xxxxxxxxxx>
- Date: Sun, 30 Apr 2006 13:48:28 -0400
On Wed, Apr 26, 2006 at 06:00:52PM -0500, Roman Kononov wrote:
Linus Torvalds wrote:
- a lot of the C++ features just won't be supported sanely (ie the kernelA lot of C++ features are already supported sanely. You simply need to
infrastructure just doesn't do exceptions for C++, nor will it run any
static constructors etc).
understand them. Especially templates and type checking. C++
exceptions are not very useful tool in kernels. Static constructor
issue is trivial. I use all C++ features (except exceptions) in all
projects: Linux kernel modules, embedded real-time applications,
everywhere. They _really_ help a lot.
Seriously, your code must be broken.
The C++ standard does not allow an allocator to return NULL, it is
supposed to raise an exception.
Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- RE: C++ pushback
- From: David Schwartz
- RE: C++ pushback
- References:
- RE: C++ pushback
- From: Matthew Frost
- RE: C++ pushback
- From: David Schwartz
- Re: C++ pushback
- From: Jan-Benedict Glaw
- Re: C++ pushback
- From: Linus Torvalds
- Re: C++ pushback
- From: Roman Kononov
- RE: C++ pushback
- Prev by Date: [patch 02/14] remap_file_pages protection support: add needed macros
- Next by Date: Re: [FYI] whitespace removal
- Previous by thread: Re: C++ pushback (when does this religious thread end?)
- Next by thread: RE: C++ pushback
- Index(es):
Relevant Pages
|
|