Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-02-26 08:40:30

Jan Langer wrote:
> On Tue, 26 Feb 2002, Vladimir Prus wrote:
> >The first thing is that it would be great to have some base filesystem
> > class which can be used to access different fs types. This would allow,
> > for example, accessing regular filesystem and HTTP/WebDAV server in a
> > uniform manner;
> it is possible, but not in the sense you mean. for example an
> implementation for urls can be provided. and you can write
> copy ("", "file:/home/jan/index.htm");

But how that "URL filesystem" would be implemented? Say there will be classes
for both regular filesystem and http. If they are not derived from any base
class, you'll have to make url filesystem depend on them by hardcoding
typenames. How will adding a new scheme be possible then? And what is wrong
with having a base class?

- Volodya

Boost list run by bdawes at, gregod at, cpdaniel at, john at