Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-01-09 15:20:42

Bugs item #874027, was opened at 2004-01-09 12:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: native_file_string broken (returns stack object)

Initial Comment:
boost lib 'filesystem'
on Windows, native_file_string() allocates a
std::string on the stack and returns it. the
std::string is deleted when native_file_string()
returns, and the calling function cannot know the
return value (ie, the path)

The only fix I can see (assuming you don't want to
change the API) is to allocate the std::string on the
heap and return that, depending on the caller to delete it.


You can respond by visiting:

This email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval!
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at