How do I use C ++ <filesystem> in Visual Studio Express 2013?

I am trying to use experimental C ++ 14 file system in VS Express 2013 with no success. If I add the following line compiling the code:

#include <filesystem>

      

After adding the following:

using std::tr2::sys;

      

the code notices the compilation and gives the following error message:

Error   1   error C2873: 'std::tr2::sys' : symbol cannot be used in a using-declaration

      

How to use the file system correctly. Tried visiting http://msdn.microsoft.com/en-us/library/hh874694 and couldn't find a clear explanation on how to use it.

+3


source share


1 answer


using std::tr2::sys;

      

Use correct syntax:



using namespace std::tr2::sys;

      

+4


source







All Articles