Boost logo

Boost :

From: Eljay Love-Jensen (eljay_at_[hidden])
Date: 2004-03-26 08:49:34


Dear BOOST folks,

Here's an recipe idea for a BOOST library:

Take the Standard C Library.
Create a new namespace, "boost::xtd::" for instance.
For every function in the Standard C Library, create an analog in the
"boost::xtd::" namespace.
The analog function would have the same functional behavior as the StdCLib
function, with the notable difference that any errors will generate an
exception.

Some of my projects here at work have done something similar, with a
limited subset of C. That subset being only those handful of routine that
we cared about.

The value of having this in the BOOST repertoire:
1. a (BOOST) standard convention that would be the same for everyone
2. maybe it'd get folded into ISO/IEC 14882 at some future point
3. Standard C Library with C++ exceptions

Example 18 header files being...
<boost/xtd/stdio.hpp>
<boost/xtd/stdlib.hpp>
<boost/xtd/stddef.hpp>
<boost/xtd/stdassert.hpp>
<boost/xtd/time.hpp>
<boost/xtd/errno.hpp>
<boost/xtd/ctype.hpp>
<boost/xtd/wtype.hpp>
<boost/xtd/string.hpp>
<boost/xtd/wchar.hpp>
<boost/xtd/locale.hpp>
<boost/xtd/limits.hpp>
<boost/xtd/float.hpp>
<boost/xtd/setjmp.hpp>
<boost/xtd/signal.hpp>
<boost/xtd/math.hpp>
<boost/xtd/iso646.hpp>
<boost/xtd/stdarg.hpp>

Opinions of this idea merits being implemented?

Does it sound appropriate for a BOOST library?

Sincerely,
John "Eljay" Love-Jensen
Adobe Systems Incorporated


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk