[depr.fs.path.obs]

# Annex D (normative) Compatibility features [[depr]](./#depr)

## D.22 Deprecated file systems [[depr.filesystems]](depr.filesystems#depr.fs.path.obs)

### D.22.2 Deprecated filesystem path format observers [depr.fs.path.obs]

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L872)

The following members are declared in addition to those members
specified in [[fs.path.member]](fs.path.member "31.12.6.5 Members"):

namespace std::filesystem {class path {public: std::string string() const;
 std::string generic_string() const; };}

[ð](#lib:string,path)

`std::string string() const;
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L892)

*Returns*: system_encoded_string()[.](#2.sentence-1)

[ð](#lib:generic_string,path)

`std::string generic_string() const;
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L903)

*Returns*: generic_system_encoded_string()[.](#3.sentence-1)
