:wstringのためになぜboost :: filesystem :: path :: string()はWindowsでは値で返され、POSIXでは参照によって返されますか?ブースト/ファイルシステム/ path.hppから
# ifdef BOOST_WINDOWS_API
const std::string string() const
{
[...]
}
# else // BOOST_POSIX_API
// string_type is std::string, so there is no conversion
const std::string& string() const { return m_pathname; }
[...]
# endif
()、それは正確に他の方法で回避され - Windows上で参照することによって、およびPOSIX上の値で返します。興味深い理由はありますか?