-
Notifications
You must be signed in to change notification settings - Fork 163
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
[dynamic] Initialization issue #453
Comments
@sdebionne yes, it is desired. I have only applied very minimal C++11 modernisation to the dynamic_image extension, it needs more. By the way, we are likely removing some of apparently dead code from the dynamic_image extension (see #281) and we will also be looking into adding move semantics to image classes (see #438). |
@sdebionne I discovered that we might have lost the There have been number of changes to Here is what I'm testing using Boost 1.76, https://godbolt.org/z/4Ta31Tf3P, and below: #include <boost/gil.hpp>
#include <boost/gil/extension/dynamic_image/any_image.hpp>
#include <boost/mp11.hpp>
namespace gil = boost::gil;
int main()
{
// OK
{
gil::any_image
<
gil::gray8_image_t,
gil::rgb8_image_t
> image;
image.dimensions();
}
// not OK
{
gil::any_image
<
boost::mp11::mp_list
<
gil::gray8_image_t,
gil::rgb8_image_t
>
> image;
image.dimensions();
}
} |
The first form is the only one supported for |
@sdebionne Thank for the update. Yes, it does predate the variant2. I will have to catch up the IO tests with those changes. |
I thought I had updated all the tests, but since I am usually not running the tests locally with IO tests, I might have left some behind... sorry about that. Indeed, it would be great to have the CI catch these oversights. |
@sdebionne No problem, not your fault, but the tests configuration - it should be no brainer w/o any manual tweaks required. |
See discussion at boostorg#453 (comment)
See discussion at boostorg#453 (comment) Closes boostorg#606
See discussion at #453 (comment) Closes #606
See discussion at boostorg/gil#453 (comment) Closes #606
See discussion at boostorg/gil#453 (comment) Closes #606
Actual behavior
Fails to compile with
while
compiles fine.
Expected behavior
It would be nice if both initializations work the same.
C++ Minimal Working Example
Environment
<boost/version.hpp>
): 1.75The text was updated successfully, but these errors were encountered: