Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual c++ Microsoft对FileSystem::canonical()的实现不起作用?_Visual C++ - Fatal编程技术网

Visual c++ Microsoft对FileSystem::canonical()的实现不起作用?

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的内容

在Visual Studio 2015 Update 1中,如果我尝试获取以下绝对路径:

fs::path myPath = "../../somepath/morepath";
fs::canonical(myPath);
我得到的只是:

..\..\somepath\morepath

我是做错了什么还是根本不起作用?

如果使用canonical的返回值,您可能会更喜欢它。是的!谢谢,但它仍然返回类似于c:\path\..\somepath\morepath的内容