Boost logo

Boost :

From: jan_langer (jan_at_[hidden])
Date: 2001-12-26 18:02:57


hello
i want to write two things related to the filesystem lib.

i tried to do the win32 port with vc++ but made no progress due to
the many problems i got while using the compiler and its library. i
spent hours on problems which are written in minutes on a real system.
since i have hardly any experience in win32 programming i surrender
to do the port.
i can post or mail my attempts (the dir_it itself works) if someone
is interested.

i suggest to replace the templatizations of the dir_it and its
representation with a char type by a general typedef of char_type and
string_type on top level (boost::filesystem).
the reason is that i see no advantages in supporting this template
parameter if the underlying os always only supports one char type
which might be converted to the requested type by dir_it. i think
this is the users task.

namespace boost {
namespace filesystem {
  typedef char char_type;
  typedef std::basic_string <char_type> string_type;

  class dir_it {
  public:
    dir_it (string_type const &);
    ...
  };
}
}

this also avoids many other problems like member function templates
in the attributes classes and lots of explicit instantiations .

i would be very happy to get feeedback soon since i have much free
time next week.

-- 
jan langer
jan_at_[hidden]

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