Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-02-25 09:25:43

Bugs item #1151823, was opened at 2005-02-25 14:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Bright (sircus)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::filesystem::native() should reject '/' on non-Win32

Initial Comment:
On Win32, filesystem::native() correctly checks paths
for validity on Win32. For other systems, it just
returns true, presumably on the theory that for Unix,
anything goes. Unless I'm much mistaken though, the
character '/' is not allowed in Unix filenames. As
such, native() should be changed as follows:

BOOST_FILESYSTEM_DECL bool native( const std::string
&name )
  return name.find('/') == std::string::npos;


You can respond by visiting:

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Boost-bugs mailing list

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