Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
| Angus> Instead of Path p("/tmp"); We would write Path p("/tmp", p);
>
| So one forces a nasty syntax just to avoid improper use. That does not
| seem very nice to me.
agreed.
| Angus>
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Instead of Path p("/tmp"); We would write Path p("/tmp", p);
So one forces a nasty syntax just to avoid improper use. That does not
seem very nice to me.
Angus> Both strategies prevent Path("/tmp"); but our current approach
Angus>
Jean-Marc Lasgouttes wrote:
>> "Angus" == Angus Leeming <[EMAIL PROTECTED]>
>> writes:
>
> Angus> Here's an alternative, pure C++ way, that's just been posted to
> Angus> c.l.c++.m by 'tom_usenet'.
>
> I am not sure that I understand how this solution would apply to Path.
>
> JMarc
Ins
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Here's an alternative, pure C++ way, that's just been posted to
Angus> c.l.c++.m by 'tom_usenet'.
I am not sure that I understand how this solution would apply to Path.
JMarc
We currently ensure that use of support::Path is correct by using a macro:
// path.h
class Path : boost::noncopyable {
public:
/// change to the given directory
explicit Path(std::string const & path);
/// set cwd to the previous value if needed
~Path();
};
// To