Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-03-13 01:59:41


On a windows system, doing this:

path::default_name_check( &windows_name);
path p( "c:/temp/test");

Throws an exception.

However, having:
path::default_name_check( &native);
path p( "c:/temp/test");

works.

I think there is a bug in path_posix_windows.cpp, line 241:
      if ( (checker == no_check || checker == native) && src.size() >= 2 )

I guess it should be something like:
      if ( (checker == no_check || checker == native || check ==
windows_name) && src.size() >= 2 )

Best,
John


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