This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++17 status.
system_completerefers to undefined variable 'base'
Section: 99 [fs.op.system_complete] Status: C++17 Submitter: Jonathan Wakely Opened: 2014-07-20 Last modified: 2017-08-01
View all issues with C++17 status.
The example says "...or
base have the same
base is not defined. I believe it refers to the value returned by
[Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS]
Change 99 [fs.op.system_complete] as indicated:
For Windows based operating systems,
system_complete(p)has the same semantics as
p.is_absolute() || !p.has_root_name()or
have the same
root_name(). Otherwise it acts like
absolute(p, cwd)is the current directory for the
p.root_name()drive. This will be the current directory for that drive the last time it was set, and thus may be residue left over from a prior program run by the command processor. Although these semantics are useful, they may be surprising.