Skip to content

Commit

Permalink
fix for latest visual studio (from experimental/filesystem to filesys…
Browse files Browse the repository at this point in the history
…tem)
  • Loading branch information
potree committed Feb 24, 2020
1 parent ec1e315 commit 5f38c01
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 21 deletions.
4 changes: 2 additions & 2 deletions PotreeConverter/include/PointReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#ifndef POINTREADER_H
#define POINTREADER_H

#include <experimental/filesystem>
#include <filesystem>

#include "Point.h"
#include "AABB.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

namespace Potree{

Expand Down
5 changes: 2 additions & 3 deletions PotreeConverter/include/stuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <sys/stat.h>
#include <sys/types.h>

#include <experimental/filesystem>
#include <filesystem>

#include "Vector3.h"
#include "AABB.h"
Expand All @@ -33,10 +33,9 @@ using std::cout;
using std::cin;
using std::endl;
using std::vector;
using std::binary_function;
using std::map;

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

namespace Potree {

Expand Down
4 changes: 2 additions & 2 deletions PotreeConverter/src/BINPointReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#include <iostream>
#include <vector>

#include <experimental/filesystem>
#include <filesystem>

#include "BINPointReader.hpp"
#include "stuff.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

using std::ifstream;
using std::cout;
Expand Down
4 changes: 2 additions & 2 deletions PotreeConverter/src/LASPointReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
#include <iostream>
#include <vector>

#include <experimental/filesystem>
#include <filesystem>
#include "laszip_api.h"

#include "LASPointReader.h"
#include "stuff.h"


namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

using std::ifstream;
using std::cout;
Expand Down
12 changes: 6 additions & 6 deletions PotreeConverter/src/PotreeConverter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


#include <experimental/filesystem>
#include <filesystem>

#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
Expand Down Expand Up @@ -46,7 +46,7 @@ using std::chrono::milliseconds;
using std::chrono::duration_cast;
using std::fstream;

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

namespace Potree{

Expand Down Expand Up @@ -100,10 +100,10 @@ vector<PointAttribute> checkAvailableStandardAttributes(string file) {
laszip_request_compatibility_mode(laszip_reader, request_reader);

bool hasClassification = false;
bool hasGpsTime = false;
bool hasIntensity = false;
bool hasNumberOfReturns = false;
bool hasReturnNumber = false;
bool hasGpsTime = false;
bool hasIntensity = false;
bool hasNumberOfReturns = false;
bool hasReturnNumber = false;
bool hasPointSourceId = false;

{
Expand Down
4 changes: 2 additions & 2 deletions PotreeConverter/src/PotreeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <fstream>
#include <iomanip>

#include <experimental/filesystem>
#include <filesystem>

#include "AABB.h"
#include "SparseGrid.h"
Expand All @@ -31,7 +31,7 @@ using std::chrono::high_resolution_clock;
using std::chrono::milliseconds;
using std::chrono::duration_cast;

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

namespace Potree{

Expand Down
5 changes: 2 additions & 3 deletions PotreeConverter/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
#include "arguments.hpp"
#include <filesystem>

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

using std::string;
using std::cout;
using std::cerr;
using std::endl;
using std::vector;
using std::binary_function;
using std::map;
using std::chrono::high_resolution_clock;
using std::chrono::milliseconds;
Expand Down Expand Up @@ -251,7 +250,7 @@ PotreeArguments parseArguments(int argc, char **argv){
}

try {
auto absolutePath = fs::canonical(fs::system_complete(argv[0]));
auto absolutePath = fs::canonical(fs::absolute(argv[0]));
a.executablePath = absolutePath.parent_path().string();
} catch (const fs::filesystem_error &e) {
// do nothing
Expand Down
1 change: 0 additions & 1 deletion PotreeConverter/src/stuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ using std::cout;
using std::cin;
using std::endl;
using std::vector;
using std::binary_function;
using std::map;


Expand Down

0 comments on commit 5f38c01

Please sign in to comment.