From 81c69fd1708e4326107e6a2716f0332a729136a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 1 Aug 2016 12:35:05 +0200 Subject: Add path::posix_string()&& overload, path::posix_representation() --- butl/path.ixx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'butl/path.ixx') diff --git a/butl/path.ixx b/butl/path.ixx index a90922a..26a9b3d 100644 --- a/butl/path.ixx +++ b/butl/path.ixx @@ -296,10 +296,31 @@ namespace butl #ifndef _WIN32 template inline typename basic_path::string_type basic_path:: - posix_string () const + posix_string () const& { return string (); } + + template + inline typename basic_path::string_type basic_path:: + posix_string () && + { + return std::move (*this).string (); + } + + template + inline typename basic_path::string_type basic_path:: + posix_representation () const& + { + return representation (); + } + + template + inline typename basic_path::string_type basic_path:: + posix_representation () && + { + return std::move (*this).representation (); + } #endif template -- cgit v1.1