Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-07-24 08:23:07


Below is a small patch that makes compiler_status.cpp operate properly on my
Linux box. The path names aren't enclosed in double quotes on *nix as they
are on Win32.

        Doug

Index: compiler_status.cpp
===================================================================
RCS file:
/cvsroot/boost-sandbox/boost-sandbox/libs/filesystem/example/compiler_status.cpp,v
retrieving revision 1.2
diff -c -r1.2 compiler_status.cpp
*** compiler_status.cpp 8 Jul 2002 20:06:04 -0000 1.2
--- compiler_status.cpp 24 Jul 2002 13:19:05 -0000
***************
*** 237,244 ****
          std::getline( file, test_path );
          if ( test_path.size() )
          {
! test_path = test_path.erase( 0, 1 ); // strip "
! test_path.erase( test_path.find( "\"" ) );
            // test_path is now a disk path, so convert to URL style path
            convert_backslashes( test_path );
            string::size_type pos = test_path.find( "/libs/" );
--- 237,246 ----
          std::getline( file, test_path );
          if ( test_path.size() )
          {
! if (test_path[0] == '\"') {
! test_path = test_path.erase( 0, 1 ); // strip "
! test_path.erase( test_path.find( "\"" ) );
! }
            // test_path is now a disk path, so convert to URL style path
            convert_backslashes( test_path );
            string::size_type pos = test_path.find( "/libs/" );
***************
*** 434,437 ****
            ;

    return 0;
! }
\ No newline at end of file
--- 436,439 ----
            ;

    return 0;
! }


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