-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support for pointers to incomplete types #34
Comments
Thanks for the report! I just tried it out and confirmed the issue. It either looks like my fallback implementation of |
Awesome. Thanks for the confirmation and for having a look into the issue. Have a great time at CppCon. |
Great! Thanks for fixing this issue. It works flawlessly now. |
I'm experiencing something similar with gcc 7, seems to work with 8 https://godbolt.org/z/0fb-bV |
The core of the issue here was that my implementation of |
First of all, thank you for providing this implementation of
std::variant
. It's great to have a lightweight alternative toboost::variant
available in C++11.I just stumbled over an issue with recursive type definitions, and I'm not sure whether it's a limitation of C++11 or the variant implementation. The following struct definition compiles fine with GCC's and Clang's C++17 support:
When replacing
std::variant
withmpark::variant
, I get an error message regarding the incomplete typeS
ofstd::pair<int, S>::second
. Is it possible to enhance your implementation so that this kind of recursive type definition compiles withmpark::variant
under C++11 as well?The text was updated successfully, but these errors were encountered: