Visual c++ Microsoft对FileSystem::canonical()的实现不起作用?
在Visual Studio 2015 Update 1中,如果我尝试获取以下绝对路径:Visual c++ Microsoft对FileSystem::canonical()的实现不起作用?,visual-c++,Visual C++,在Visual Studio 2015 Update 1中,如果我尝试获取以下绝对路径: fs::path myPath = "../../somepath/morepath"; fs::canonical(myPath); 我得到的只是: ..\..\somepath\morepath 我是做错了什么还是根本不起作用?如果使用canonical的返回值,您可能会更喜欢它。是的!谢谢,但它仍然返回类似于c:\path\..\somepath\morepath的内容
fs::path myPath = "../../somepath/morepath";
fs::canonical(myPath);
我得到的只是:
..\..\somepath\morepath
我是做错了什么还是根本不起作用?如果使用canonical的返回值,您可能会更喜欢它。是的!谢谢,但它仍然返回类似于c:\path\..\somepath\morepath的内容