File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,22 @@ public:
5151
5252 // / Returns the path of this directory
5353 // / @returns The full path of this directory
54- operator const std::filesystem::path&() const noexcept ;
54+ operator const std::filesystem::path&() const noexcept {
55+ return pathobject;
56+ }
5557
5658 // / Returns the path of this directory
5759 // / @returns The full path of this directory
58- const std::filesystem::path& path () const noexcept ;
60+ const std::filesystem::path& path () const noexcept {
61+ return pathobject;
62+ }
5963
6064 // / Concatenates this directory path with a given path name
6165 // / @param source A path name
6266 // / @returns The result of path concatenation
63- std::filesystem::path operator /(const std::filesystem::path& source) const ;
67+ std::filesystem::path operator /(const std::filesystem::path& source) const {
68+ return path () / source;
69+ }
6470
6571 // / Deletes this directory recursively
6672 ~directory () noexcept ;
Original file line number Diff line number Diff line change @@ -116,18 +116,6 @@ void remove_directory(const directory& directory) noexcept {
116116directory::directory (std::string_view prefix)
117117 : pathobject(create_directory(prefix)) {}
118118
119- directory::operator const fs::path&() const noexcept {
120- return pathobject;
121- }
122-
123- const fs::path& directory::path () const noexcept {
124- return pathobject;
125- }
126-
127- fs::path directory::operator /(const fs::path& source) const {
128- return path () / source;
129- }
130-
131119directory::~directory () noexcept {
132120 (void )handle; // Old compilers do not want to accept `[[maybe_unused]]`
133121 remove_directory (*this );
You can’t perform that action at this time.
0 commit comments