Opened 17 years ago

Closed 17 years ago

#535 closed Bugs (Works For Me)

Problems with native_file_string() on windows

Reported by: nobody Owned by: beman_dawes
Milestone: Component: filesystem
Version: None Severity:
Keywords: Cc:

Description

It seems I have stumbled upon a known bug with
path::native_file_string() on windows.

The returned std::string object can not be destroyed
when going out of scope.

A similar error occurs when using
directory_iterator::leaf().

Has anyone developed a patch for this yet?

Thanks,
barry
bazbishop@btinternet.com


see also:
http://aspn.activestate.com/ASPN/Mail/Message/boost/1968006
http://archives.free.net.ph/message/20051111.035907.1ed81e73.en.html

Change History (2)

comment:1 by beman_dawes, 17 years ago

Logged In: YES 
user_id=51042

Hum... What do you mean by "can not be destroyed when going
out of scope"?

The return from these functions is by value, so destruction
is automatic.

Could you post a sample of your code?

--Beman

comment:2 by beman_dawes, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=51042

In view of the lack of sample code, I'm closing this. Since
the object involved is automatic (stack) allocation, I can't
see any possible "cannot be destroyed when going out of
scope" issue.

Perhaps the OP meant something else, but I don't have any
plausible guess for what that might be.
  
--Beman
Note: See TracTickets for help on using tickets.