-
Notifications
You must be signed in to change notification settings - Fork 36
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
Compilation failed with only moveable type or only copyable type #32
Comments
Hello! Same problem here. What is the motivation behind this design? |
I've applied the following patch to my local copy to make it work with non-copyable or non-movable types. |
Likeky related to issue #29 |
Thanks for your patches I will test your modifications soon and give you a feedback. |
According to this issue: jinja2cpp/Jinja2Cpp#157
But current wording of p0323 requires the explicit copy-ctor:
Looks like the proper solution for this issue is to keep the previous version of copy-ctor (before the patch) and add extra |
The possible solution looks like this: https://godbolt.org/z/sbB4PL I. e. move moveable/copyable traits handling to the |
The problem with the current implementation is perfectly described here: https://stackoverflow.com/questions/27073082/conditionally-disabling-a-copy-constructor |
Thanks @flexferrum for the help & pointers. Will look at it later. |
Would it be possible to get a 0.3.1 release with these changes? its much easier than tracking patches. |
@prince-chrismc I'll release current state as version 0.4.0, hopefully by tomorrow. |
Wow thanks! It's greatly appreciated! Absolutely love this project ❤️ |
@prince-chrismc released version 0.4.0 |
Hi,
First of all thanks for this great library
I can't use nonstd::expected with a non copyable type or a non moveable type can you tell me if this behavior is expected ?
You can find my test code and the compilation error here https://godbolt.org/z/o2Evdr (with gcc-9.2 and clang-8)
Thank you in advance for your answer
The text was updated successfully, but these errors were encountered: