How similar are Boost.Filesystem and the C++ standard filesystem library?

前端 未结 2 988
我在风中等你
我在风中等你 2020-12-03 04:31

I need a filesystem library for use with a C++11-capable compiler or a C++14-capable one - so it can\'t be be from C++17.

Now, I know that the filesystem library

2条回答
  •  醉话见心
    2020-12-03 05:25

    Caveat: This answer does not reflect several last-minute changes before C++17 was finalized. See @DavisHerring's answer.


    The Boost filesystem inserter and extractor use & as the escape character for " and &.

    The standard will use std::quoted (which uses \ by default) to escape ", which in turn use \\ to escape \, see this reference.

    Demo

    It is likely the only one difference between them.

    The reason for that difference can be found at N3399

提交回复
热议问题