diff --git a/src/autowiring/C++11/filesystem.h b/src/autowiring/C++11/filesystem.h index 07f4fcd46..0452c0368 100644 --- a/src/autowiring/C++11/filesystem.h +++ b/src/autowiring/C++11/filesystem.h @@ -40,9 +40,9 @@ namespace std { awfsnamespace::wpath(_Ptr) {} - basic_path& operator=(basic_path&& _Right) { *(awfsnamespace::wpath*)this = std::move(_Right); } + basic_path& operator=(basic_path&& _Right) { return *(awfsnamespace::wpath*)this = std::move(_Right); } basic_path& operator=(const string_type& _Str) { return *(awfsnamespace::wpath*)this = _Str; } - basic_path& operator=(const wchar_t* _Ptr) { *(awfsnamespace::wpath*)this = _Ptr; } + basic_path& operator=(const wchar_t* _Ptr) { return *(awfsnamespace::wpath*)this = _Ptr; } path extension(void) const { return{ awfsnamespace::wpath::extension() };