Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-06-20 19:23:59


Bugs item #1509633, was opened at 2006-06-20 16:23
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=1509633&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: filesystem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin J Bluck (kbluck)
Assigned to: Beman Dawes (beman_dawes)
Summary: [filesystem] portable_posix_name() may fail on premain call

Initial Comment:
Boost 1.33.1

The constant valid_posix defined in
path_posix_windows.cpp is a module-level static
definition. This means that instances of path also
defined at some other module scope may fail when
checking against portable_posix_name due to
initialization-order problems; valid_posix may not yet
be initialized at the time it is referenced.

This can be avoided by wrapping valid_posix and similar
static constants in functions as function statics,
which guarantees initialization order.

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

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

_______________________________________________
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