Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for_each_pixel for non 1d iterable views #621

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

sdebionne
Copy link
Contributor

@sdebionne sdebionne commented Jul 16, 2021

References

Fix #620

Tasklist

  • Add test case(s)
  • Ensure all CI builds pass
  • Review and approve

@sdebionne
Copy link
Contributor Author

@mloskot When the tests pass, I know we are pretty late in the dev cycle of 1.77 but any chance that this could be merged to master for 1.77?

@sdebionne
Copy link
Contributor Author

Some tests fails spurioulsy and generally unrelated to Boost.GIL, for instance clang/ubuntu reports:

/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/memory:200:16: error: no member named 'is_constant_evaluated' in namespace 'std'
      if (std::is_constant_evaluated())

or

error: toolset clang-linux initialization:
error: provided command '"clang++-9"' not found

@lpranam There seems to be an issue with the numeric extension though, MSVC complains:

D:\a\gil\boost-root\boost/gil/extension/numeric/kernel.hpp(126): error C2338: kernel must have size greater than 0

@sdebionne
Copy link
Contributor Author

@mloskot How about this one 😀 ?

Copy link
Member

@mloskot mloskot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@mloskot mloskot added the core boost/gil label Oct 5, 2021
@mloskot mloskot added this to the Boost 1.78+ milestone Oct 5, 2021
@mloskot mloskot added the cat/bug But reports and bug fixes label Oct 5, 2021
@sdebionne
Copy link
Contributor Author

@mloskot @simmplecoder Any chance that this could be merged? It fixes a pretty annoying bug (silently returns the wrong result)...

@mloskot
Copy link
Member

mloskot commented Mar 1, 2022

Shoot, it's slipped through. Please, merge, of course.

@sdebionne sdebionne merged commit da0655f into boostorg:develop Mar 1, 2022
@sdebionne sdebionne deleted the fix-620 branch March 1, 2022 13:35
@mloskot
Copy link
Member

mloskot commented Apr 12, 2022

@sdebionne

Some tests fails spurioulsy and generally unrelated to Boost.GIL, for instance clang/ubuntu reports:

/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/memory:200:16: error: no member named 'is_constant_evaluated' in namespace 'std'
      if (std::is_constant_evaluated())

I noticed the same issue using clang 8 but with cxxstd=2a

clang-linux.compile.c++ bin.v2/libs/filesystem/build/clang-linux-8/release/cxxstd-2a-iso/threading-multi/visibility-hidden/operations.o
In file included from libs/filesystem/src/operations.cpp:23:
In file included from ./boost/smart_ptr/scoped_ptr.hpp:22:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/memory:200:16: error: no member named 'is_constant_evaluated' in namespace 'std'
      if (std::is_constant_evaluated())
          ~~~~~^
1 error generated.

  "clang++-8" -c -x c++ -std=c++2a -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline  -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW -DBOOST_FILESYSTEM_HAS_INIT_PRIORITY -DBOOST_FILESYSTEM_HAS_STATX -DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE -DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM -DBOOST_FILESYSTEM_SOURCE -DNDEBUG -I"." -I"libs/filesystem/src"   -o "bin.v2/libs/filesystem/build/clang-linux-8/release/cxxstd-2a-iso/threading-multi/visibility-hidden/operations.o" "libs/filesystem/src/operations.cpp"

...failed clang-linux.compile.c++ bin.v2/libs/filesystem/build/clang-linux-8/release/cxxstd-2a-iso/threading-multi/visibility-hidden/operations.o...

clang-8-cxxstd-2a.zip

mloskot added a commit that referenced this pull request Apr 12, 2022
This is workaround for clang issue with cxxstd=2a:
  error: no member named 'is_constant_evaluated' in namespace 'std'
See #621 (comment)
@sdebionne
Copy link
Contributor Author

Are these issues related to partially implemented std / standard library? Again I am super happy with all the work being done on the CI, this will make the project more attractive to users and developers.

@mloskot
Copy link
Member

mloskot commented Apr 13, 2022

Are these issues related to partially implemented std / standard library?

I'm not 100% sure, but looks like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/bug But reports and bug fixes core boost/gil
Projects
None yet
Development

Successfully merging this pull request may close these issues.

for_each_pixel return value is incorrect for not 1d traversable view
2 participants