Skip to content

ADD string cast operator to path class#33

Open
xuio wants to merge 1 commit intowjakob:masterfrom
xuio:feature-operator-string
Open

ADD string cast operator to path class#33
xuio wants to merge 1 commit intowjakob:masterfrom
xuio:feature-operator-string

Conversation

@xuio
Copy link

@xuio xuio commented Mar 27, 2020

I added the cast operator for std::string. It just invokes path::str(). It enables following usage:

path root{"/tmp"};
path file{"test.json"};

std::ifstream test {root / file};

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