Skip to content

Update issue #65 - remove_filename() post condition is incorrect#19

Open
EricWF wants to merge 1 commit intocplusplus:developfrom
EricWF:develop
Open

Update issue #65 - remove_filename() post condition is incorrect#19
EricWF wants to merge 1 commit intocplusplus:developfrom
EricWF:develop

Conversation

@EricWF
Copy link
Copy Markdown

@EricWF EricWF commented Feb 4, 2016

Hi Beman,

The current issue resolution says:

Effects: *this = parent_path(), except that if parent_path() == root_path(), clear().

But this should say root_name() instead of root_path(). For example the breakdown of /foo is:
root_name = ""
root_path = "/"
parent_path = "/"

Using root_name() means that path("/foo").remove_filename() should call clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant