akolechko
akolechko

Reputation: 95

Can't use <filesystem> in visual studio

I'm trying to use filesystem, but it doesn't work in VS19. Even with /std:c++17. Any ideas why? Maybe I have to install some special packages?

enter image description here

Edit. Compilation error:

enter image description here

Edit 2. header:

enter image description here

Upvotes: 1

Views: 1028

Answers (1)

drescherjm
drescherjm

Reputation: 10857

Make sure that you apply the /std:c++17 setting to all configurations. The default behavior of changing project properties only updates the active configuration. In my brief testing I had the Intellisense error with Visual Studio 2019 Version 16.7.3 until I made this switch.

Upvotes: 4

Related Questions