Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #8911
| From | jt@toerring.de (Jens Thoms Toerring) |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: C++ and directories |
| Date | 2011-08-16 11:58 +0000 |
| Organization | Freie Universitaet Berlin |
| Message-ID | <9av4amF9heU5@mid.uni-berlin.de> (permalink) |
| References | <_8j2q.43956$nj1.56@newsfe19.iad> <pan.2011.08.16.10.57.57.450000@nowhere.com> <4e4a57af$0$3063$7b1e8fa0@news.nbl.fi> |
Juha Nieminen <nospam@thanks.invalid> wrote:
> Nobody <nobody@nowhere.com> wrote:
> > The C++ language isn't tied to a specific platform. Consequently, it
> > doesn't include features which are platform-specific. Directories are such
> > a feature: not all platforms have them, and those that do can have wildly
> > different semantics.
> >
> > So you need to use either a third-party library (e.g. boost::filesystem),
> I can't help but to notice the slight contradiction: First it's pointed
> out that handling directories and file listings is very system-dependent
> (and hence by implication impossible to write code for in a portable way),
> and immediately after that a portable generic file system library is
> suggested.
> Anyways, is there a reason why the C++ standard couldn't include a
> library similar to boost::filesystem?
According to the documentation it is in the process of being made
part of the C++ standard:
A proposal, N1975, to include Boost.Filesystem in Technical
Report 2 has been accepted by the C++ Standards Committee.
The Boost.Filesystem library will stay in alignment with the
TR2 Filesystem proposal as it works its way through the TR2
process.
I guess that, due to the C background of C++ (C doesn't have
a portable interface for directory and file managment) it was
not considered to be necessary for C++ to have one. And then
this is a non-trivial problem and probably there wasn't a re-
ference implementation that really worked like Boost.Flile-
system seems to do and, as far as my understanding of the
standarduzation prozess goes, getting something into the
standard without a reasonable reference implementation normally
doesn't happen. And even with a reference implementation it's
still a long process...
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-15 17:49 -0700
Re: C++ and directories Ian Collins <ian-news@hotmail.com> - 2011-08-16 12:55 +1200
Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:15 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-16 11:57 +0100
Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-16 11:42 +0000
Re: C++ and directories Marc <marc.glisse@gmail.com> - 2011-08-16 11:49 +0000
Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:58 +0000
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 16:02 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 13:09 +0100
Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-17 13:02 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 18:11 +0100
Re: C++ and directories "Paul" <pchristor@yahoo.co.uk> - 2011-08-18 20:38 +0100
Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:03 -0700
Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:06 -0700
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 15:24 +0000
Re: C++ and directories "Bo Persson" <bop@gmb.dk> - 2011-08-17 12:39 +0200
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-17 11:39 +0000
Re: C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-22 10:06 -0700
csiph-web