Skip to content

TextView: Add support for use as "Source" in STL containers.#4176

Merged
SolidWallOfCode merged 1 commit intoapache:masterfrom
SolidWallOfCode:textview-source
Sep 11, 2018
Merged

TextView: Add support for use as "Source" in STL containers.#4176
SolidWallOfCode merged 1 commit intoapache:masterfrom
SolidWallOfCode:textview-source

Conversation

@SolidWallOfCode
Copy link
Copy Markdown
Member

@SolidWallOfCode SolidWallOfCode commented Aug 30, 2018

This came up while working with std::filesystem. TextView was always designed to act like an iterator, this provides STL support for that. In particular the change to the dereference operators makes TextView look like a C-string to various STL interfaces (e.g. std::filesystem::path) without requiring an actual null terminating byte.

This is split from #4168.

@SolidWallOfCode SolidWallOfCode added this to the 9.0.0 milestone Aug 30, 2018
@SolidWallOfCode SolidWallOfCode self-assigned this Aug 30, 2018
dragon512
dragon512 previously approved these changes Sep 11, 2018
@dragon512
Copy link
Copy Markdown
Contributor

@SolidWallOfCode There are conflicts

@SolidWallOfCode SolidWallOfCode merged commit 7ab2bec into apache:master Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants