Skip to content

Commit

Permalink
Fix build with C++17 standard - #231
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Aug 1, 2023
1 parent d4fcc21 commit 0f2d578
Show file tree
Hide file tree
Showing 48 changed files with 1,121 additions and 232 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ bool pattern_compare(const string& file_name, const string& pattern) {
auto result = getcwd(path.data(), MAXPATHLEN);
//path.shrink_to_fit();
path.erase(std::find(path.begin(), path.end(), '\0'), path.end());
if (path.starts_with("/private"))
if (path.find("/private") == 0)
path.replace(0, 8, "");
return result ? path : "";
}
Expand Down
1 change: 0 additions & 1 deletion src/xtd.core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ add_sources(
include/xtd/internal/__box_enum_or_object.h
include/xtd/internal/__box_floating_point.h
include/xtd/internal/__build_type.h
include/xtd/internal/__char8_t.h
include/xtd/internal/__character_formatter.h
include/xtd/internal/__compiler_id.h
include/xtd/internal/__compiler_version.h
Expand Down
Loading

0 comments on commit 0f2d578

Please sign in to comment.