Talk:cpp/filesystem/exists

Perhaps I do not understand the example.

In the call of demo_exists, the second argument, passed by value, is initialized with "it->status". Why then, in demo_exists's declaration of its arguments is that second argument initialized with the default constructor?

fs::file_status s = fs::file_status{}

As always, thanks for this unique, supremely useful, website!

Robin Whittle (talk) 21:52, 16 August 2019 (PDT)
 * The is a default argument. T. Canens (talk) 20:10, 18 August 2019 (PDT)