summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/src/filesystem/dir-common.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libstdc++-v3/src/filesystem/dir-common.h b/libstdc++-v3/src/filesystem/dir-common.h
index 4844b1ac453..228fab55afb 100644
--- a/libstdc++-v3/src/filesystem/dir-common.h
+++ b/libstdc++-v3/src/filesystem/dir-common.h
@@ -99,18 +99,22 @@ struct _Dir_base
struct _At_path
{
// No file descriptor given, so interpret the pathname relative to the CWD.
- _At_path(const char* p) noexcept
+ _At_path(const posix::char_type* p) noexcept
: pathname(p), dir_fd(fdcwd()), offset(0)
{ }
- _At_path(int fd, const char* p, size_t offset) noexcept
+ _At_path(int fd, const posix::char_type* p, size_t offset) noexcept
: pathname(p), dir_fd(fd), offset(offset)
{ }
- const char* path() const noexcept { return pathname; }
+ const posix::char_type*
+ path() const noexcept { return pathname; }
- int dir() const noexcept { return dir_fd; }
- const char* path_at_dir() const noexcept { return pathname + offset; }
+ int
+ dir() const noexcept { return dir_fd; }
+
+ const posix::char_type*
+ path_at_dir() const noexcept { return pathname + offset; }
private:
const posix::char_type* pathname; // Full path relative to CWD.