Skip to content

Commit

Permalink
Try a potential fix for a Windows portability problem
Browse files Browse the repository at this point in the history
filesystem paths in MSVC are based on wchar_t so my 8b regex (and
std::string) were a problem for matching against native paths. Trying
again with the generic std::string interface to see if it works.
  • Loading branch information
jefftrull committed Jun 27, 2020
1 parent b6c7d31 commit d2610b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/check_macro_naming/check_macro_naming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int main(int argc, char *argv[])
fs::recursive_directory_iterator dir_beg(dirname);
for (fs::recursive_directory_iterator it = dir_beg; it != dir_end; ++it) {
if (it->status().type() == fs::regular_file) {
std::string fn = it->path().native();
std::string fn = it->path().string();
if (regex_match(fn, header_regex))
process_header(fn, macro_regex);
}
Expand Down

0 comments on commit d2610b0

Please sign in to comment.