Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=874027&group_id=7586

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.
pmorant_at_[hidden]

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=874027&group_id=7586

-------------------------------------------------------
This SF.net 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! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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