-
Notifications
You must be signed in to change notification settings - Fork 8
Enable C++11 compatibility #16
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
Conversation
…tional_vector into cpp11-compatibility
|
Hi @iamOgunyinka, I'd love some feedback on this if you feel like it. |
|
@iamOgunyinka how should I interpret the "thumbs up" 😄 ?
|
|
haha I'm so so sorry, @jkalias, I actually thought I left a comment in the morning. I'll take a look at it after work today and will leave a comment before tomorrow. My apologies. |
|
All good, no rush, I just wasn't sure. I should be thanking you 👍 |
|
@iamOgunyinka any feedback would be great and deeply appreciated 😬 |
|
If I understand correctly, the main take from this PR is to remove the dependency on C++17's optional (and if initialization) and thus make the library available for C++11 users. On this premise, I'd say it does look good. However, I would advice that you improve the To make it a bit compatible (or an opt-in) to the standard's My apologies that this comment came late, work has kept me busy. Edit: This is a sample implementation I could come up with. I do not know if this can be usable in any way in your code because I didn't test to see if it could be returned from a function. Oh and thinking about it now, it has no |
This is correct. I wanted to make the library available for C++11, since there are a lot of legacy code bases and not everyone is on the bleeding edge of the latest standard.
I though about that as well. I considered also existing replacements for a backwards compatible
First of all, there is no need to feel bad or apologize. I completely realize that everybody has his/her own schedule, and all OSS efforts are done purely on a voluntarily basis. So, I should be apologizing for taking up your time, and thanking you for your feedback.
Ok, cool, I will have a look at it and let you know what my findings are. PS: I tried several times to add you as a reviewer, but it doesn't allow me. |
haha I don't know how to do that either.
No problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamOgunyinka I'm done incorporating your proposed changes, can you have a look when you find some time? Especially the optional.h file
include/optional.h
Outdated
| @@ -0,0 +1,100 @@ | |||
| // MIT License | |||
| // | |||
| // Created by iamOgunyinka (@iamOgunyinka, https://github.com/iamOgunyinka) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamOgunyinka I tried to give proper attribution here, I hope it's ok with you. If you want a somehow different format let me know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's OK haha it's your code, I don't need crediting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credit is where credit is due. It's the least I can do
This address issue #6