Title
system_complete refers to undefined variable 'base'
Status
c++17
Section
[fs.op.system_complete]
Submitter
Jonathan Wakely

Created on 2014-07-20.00:00:00 last changed 90 months ago

Messages

Date: 2016-04-10.22:23:37

Proposed resolution:

Change [fs.op.system_complete] as indicated:

For Windows based operating systems, system_complete(p) has the same semantics as absolute(p, current_path()) if p.is_absolute() || !p.has_root_name() or p and base current_path() 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.

Date: 2016-04-10.22:23:37

[ Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS ]

Date: 2016-04-10.22:23:37

The example says "...or p and base have the same root_name().", but base is not defined. I believe it refers to the value returned by current_path().

History
Date User Action Args
2017-07-30 20:15:43adminsetstatus: wp -> c++17
2016-06-28 12:47:21adminsetstatus: ready -> wp
2016-04-10 22:23:37adminsetmessages: + msg8043
2016-03-07 04:46:57adminsetstatus: new -> ready
2016-01-28 01:00:35adminsetmessages: + msg7931
2014-07-20 00:00:00admincreate