Matthias Klose <[email protected]> writes:

> Package: src:openscad
> Version: 2021.01-8

> openscad ftbfs with boost 1.88:
> src/FileModule.cc:68:25: error: ‘is_regular’ is not a member of ‘fs’;

Thanks for the report!

This seems to be fixed in the upstream development tree in commit
cc51ea0a0dd14075df0f9af09ed4e20cce7fcb4c. I will do a new upload that
carries that patch until next upstream release.

 - Kristian.

cc51ea0a0dd14075df0f9af09ed4e20cce7fcb4c
Author: Guenther Sohler <[email protected]>
Date:   Thu Dec 22 08:21:41 2022 +0100

    fixed small compiler warning

diff --git a/src/core/SourceFile.cc b/src/core/SourceFile.cc
index e6201722c..379235653 100644
--- a/src/core/SourceFile.cc
+++ b/src/core/SourceFile.cc
@@ -63,7 +63,7 @@ void SourceFile::registerUse(const std::string& path, const 
Location& loc)
   auto ext = fs::path(path).extension().generic_string();
 
   if (boost::iequals(ext, ".otf") || boost::iequals(ext, ".ttf")) {
-    if (fs::is_regular(path)) {
+    if (fs::is_regular_file(path)) {
       FontCache::instance()->register_font_file(path);
     } else {
       LOG(message_group::Error, Location::NONE, "", "Can't read font with path 
'%1$s'", path);

Reply via email to