Boost logo

Boost :

From: (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:

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:

Boost-bugs mailing list

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