Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2003-08-11 11:41:52


Dave,

David Abrahams wrote:
> Beman Dawes <bdawes_at_[hidden]> writes:
>
>> >If I were king, the portable, generic version of windows-native
>> >"c:/foo" would be "/c/foo" and the portable generic version of
>> >windows-native "/foo" would be *current_path().begin()/"foo". Is
>> >there a reason that approach was rejected?
>>
>>Yes, it had five or six different problems IIRC, although some of
>>them can be fixed by adding additional syntax. For example, the
>>ambiguity in "/c/foo" - is it a relative path starting with a
>>directory named "c" or a complete path to the c drive
>
>
> Read as a generic path according to my system, it is not a relative
> path because it starts with a slash. That's simple and there should
> be no confusion assuming you know you're not looking at a native format..

Ok, here is the challenge

Given the following directory structure

C:\C\foo
   \foo

What would be the native representation for the following native
paths

C:\C\foo
\C\foo
C:\foo

Thomas


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