refactor: Deprecate apply_operation in favor of variant2::visit for any_image#656
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #656 +/- ##
===========================================
+ Coverage 80.32% 80.69% +0.37%
===========================================
Files 117 116 -1
Lines 5032 5072 +40
===========================================
+ Hits 4042 4093 +51
+ Misses 990 979 -11 |
6cd79fc to
8cd1fc3
Compare
|
I think the idea of #482 was just to mark Thanks for the tests of the dynamic algorithms! |
|
Thank you for the feedback! I might be wrong, but I think we need to do both at the same time: mark Please let me know if this assumption is not correct though. |
Good point! |
8cd1fc3 to
89a0dad
Compare
Let's do it. I have moved the planning towards C++14/17 to discussion here #676 |
|
With the announcement to change to std::variant with C++17, starting from Boost 1.82, as I understood the discussion, shall we still take this intermediate step here and switch to boost::variant2::visit during for Boost 1.80 and 1.81, or should this issue be postponed to 1.82? |
|
@marco-langer I don't see any objections to the intermediate step. |
89a0dad to
92ccf37
Compare
|
@mloskot This PR is ready for review. I kept the WIP tag in the last weeks to complete/refactor the tests, but the core library refactoring is done. I think we can add/refactor the tests also after the Boost 1.80 deadline. |
There was a problem hiding this comment.
Awesome work!
The two CI failures on Windows are due to object size, so it's about configuration issue and we can ignore it for now:
D:\a\gil\boost-root\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.cpp:
fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
call "bin.v2\standalone\msvc\msvc-14.3\msvc-setup.bat" >nul
cl /Zm800 -nologo "libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.cpp" -c
-Fo"bin.v2\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.test\msvc-14.3\dbg\cxstd-14-iso\thrd-mlt\copy_and_convert_pixels.obj"
-TP /wd4675 /EHs /std:c++14 /GR /Zc:throwingNew /Z7 /Od /Ob0 /W3 /MDd /Zc:forScope /Zc:wchar_t /Zc:inline /favor:blend -DBOOST_ALL_NO_LIB=1 -D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING=1 "-I." "-Ilibs\gil\test"
...failed compile-c-c++ bin.v2\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.test\msvc-14.3\dbg\cxstd-14-iso\thrd-mlt\copy_and_convert_pixels.obj...
D:\a\gil\boost-root\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.cpp:
fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
call "bin.v2\standalone\msvc\msvc-14.3\msvc-setup.bat" >nul
cl /Zm800 -nologo "libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.cpp" -c
-Fo"bin.v2\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.test\msvc-14.3\dbg\cxstd-17-iso\thrd-mlt\copy_and_convert_pixels.obj"
-TP /wd4675 /EHs /std:c++17 /GR /Zc:throwingNew /Z7 /Od /Ob0 /W3 /MDd /Zc:forScope /Zc:wchar_t /Zc:inline /favor:blend -DBOOST_ALL_NO_LIB=1 "-I." "-Ilibs\gil\test"
...failed compile-c-c++ bin.v2\libs\gil\test\extension\dynamic_image\algorithm\copy_and_convert_pixels.test\msvc-14.3\dbg\cxstd-17-iso\thrd-mlt\copy_and_convert_pixels.obj...
I will stick this to Jamfile
<toolset>msvc:<cxxflags>/bigobj
Avoid test\extension\dynamic_image\algorithm\copy_and_convert_pixels.cpp compilation error: fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
* develop: docs!: Announce plan to require C++17 after Boost 1.80 (#694) feat: Added apply_rasterizer() free function (#695) refactor: Ellipse rasterizer according to the comment at (#692) refactor: Deprecate apply_operation in favor of variant2::visit for any_image (#656) refactor: Replace deprecated libtiff v4.3 typedefs with C99 fixed-size integers (#685) fix: Automatic detection of <filesystem> header (#684) test: Add tiled TIFF test case to simple_all_formats test: Add tests for RGB to HSL (#691) refactor: Move RGB to HSL tests to color_convert_rgb.cpp refactor: Make with_tolerance reusable across other tests chore: Correct include guard fix: Add missing #include <array> fix: Wrong RGB -> HSL convertion (#505)
Description
Closes #482
Tasklist