Boost logo

Boost :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2004-09-29 10:49:12


Beman,

I notice that the Windows implementation of exists() contains the line:

      if(::GetFileAttributesA( ph.string().c_str() ) == 0xFFFFFFFF)

This contrasts with

      DWORD attributes = ::GetFileAttributesA(
          ph.native_directory_string().c_str() );

in is_directory(). I wonder if there are any implications in using
string() as opposed to native_file_string() here? It does appear that
in most places you prefer to use the "native_" flavour when invoking
system functions.

Regards,
Angus


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