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 {
public:
 path(char*);
 path(wchar_t*);
 string file_string() const;
 wstring file_wstring() const;
};

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

   http://thread.gmane.org/gmane.comp.lib.boost.user/6337
http://news.gmane.org/find-root.php?message_id=%3c200406221823.i5MINpjj020023%40patti.moodlogic.com%3e

- Volodya


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