Attempt to make work on Windows.

This commit is contained in:
David Given
2025-08-17 10:47:54 +02:00
parent da5a20390f
commit f8813daae3
4 changed files with 3 additions and 6 deletions

View File

@@ -100,9 +100,6 @@ struct _error_collector
return_type _results; return_type _results;
constexpr _sink() {}
constexpr ~_sink() {}
template <typename Input, typename Reader, typename Tag> template <typename Input, typename Reader, typename Tag>
void operator()(const lexy::error_context<Input>& context, void operator()(const lexy::error_context<Input>& context,
const lexy::error<Reader, Tag>& error) const lexy::error<Reader, Tag>& error)

View File

@@ -63,7 +63,7 @@ public:
static const std::regex FILENAME_REGEX( static const std::regex FILENAME_REGEX(
"C_S([0-9]+)T([0-9]+)\\.[0-9]+"); "C_S([0-9]+)T([0-9]+)\\.[0-9]+");
std::string filename = di.path().filename(); std::string filename = di.path().filename().string();
std::smatch dmatch; std::smatch dmatch;
if (std::regex_match(filename, dmatch, FILENAME_REGEX)) if (std::regex_match(filename, dmatch, FILENAME_REGEX))
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[2]), chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[2]),

View File

@@ -18,7 +18,7 @@ public:
static const std::regex FILENAME_REGEX( static const std::regex FILENAME_REGEX(
"@TR([0-9]+)S([0-9]+)@\\.FLX"); "@TR([0-9]+)S([0-9]+)@\\.FLX");
std::string filename = di.path().filename(); std::string filename = di.path().filename().string();
std::smatch dmatch; std::smatch dmatch;
if (std::regex_match(filename, dmatch, FILENAME_REGEX)) if (std::regex_match(filename, dmatch, FILENAME_REGEX))
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]), chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]),

View File

@@ -17,7 +17,7 @@ public:
{ {
static const std::regex FILENAME_REGEX("([0-9]+)\\.([0-9]+)\\.raw"); static const std::regex FILENAME_REGEX("([0-9]+)\\.([0-9]+)\\.raw");
std::string filename = di.path().filename(); std::string filename = di.path().filename().string();
std::smatch dmatch; std::smatch dmatch;
if (std::regex_match(filename, dmatch, FILENAME_REGEX)) if (std::regex_match(filename, dmatch, FILENAME_REGEX))
chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]), chs.push_back(CylinderHead{(unsigned)std::stoi(dmatch[1]),