Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-12 02:20:48

Beman Dawes wrote:

> The critical technical change required is internationalization. The plan
> is to provide a templated basic_path class, with typedefs for path and
> wpath. In other words, an approach very similar to the current
> std::basic_string, std::string, and std::wstring.

I don't this that's a good idea. Which type is supposed to be used in binary
library interfaces? path or wpath? If 'path', then what happens if I pass a
wpath to that library? If 'wpath' should always be used, then why would I
ever want to use 'path'?

I'd be much happier with design like this:

class path {
 string file_string() const;
 wstring file_wstring() const;

Could you comment on the discussion we had on this on the Boost-users list:

- Volodya

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