Skip to content

Implement P3168R1: Give std::optional Range Support#9

Merged
neatudarius merged 21 commits intomainfrom
neatudarius/P3168R1
Jun 19, 2024
Merged

Implement P3168R1: Give std::optional Range Support#9
neatudarius merged 21 commits intomainfrom
neatudarius/P3168R1

Conversation

@neatudarius
Copy link
Member

@neatudarius neatudarius commented Jun 13, 2024

Implement P3168R1: Give std::optional Range Support - issue #14 .

Note: __cpp_lib_format_ranges available only on clang (check comments from optional.hpp.

@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch 2 times, most recently from 17ea2a2 to 4cb36c4 Compare June 13, 2024 16:53
@neatudarius neatudarius changed the title [WIP] Implement P3168R1 [WIP] Implement P3168R1: Give std::optional Range Support Jun 13, 2024
using value_type = T;
// Since P3168R1: Give std::optional Range Support.
using iterator = T*; // see [optional.iterators]
using const_iterator = const T*; // see [optional.iterators]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to not use pointers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brevzin , I agree with you and I have a WIP patch for an iterator implementation. I would like to put this work in a new PR, if that's OK with you.

@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch from 4cb36c4 to 7a30db7 Compare June 14, 2024 05:50
@neatudarius neatudarius changed the base branch from neatudarius/code-cleanup to main June 14, 2024 06:02
@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch 2 times, most recently from cd60fb9 to 7a30db7 Compare June 14, 2024 06:07
@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch from 1b8686c to cebf476 Compare June 14, 2024 06:18
@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch from fc5733a to 909f0bc Compare June 14, 2024 06:21
@neatudarius neatudarius force-pushed the neatudarius/P3168R1 branch from 890ff1b to 923fde0 Compare June 17, 2024 08:31
@neatudarius neatudarius requested a review from camio June 18, 2024 15:23
@neatudarius neatudarius changed the title [WIP] Implement P3168R1: Give std::optional Range Support Implement P3168R1: Give std::optional Range Support Jun 18, 2024
@neatudarius neatudarius marked this pull request as ready for review June 18, 2024 15:23
Copy link
Member

@steve-downey steve-downey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@steve-downey
Copy link
Member

Getting 24.10 is unexpected - what we want is 24.04, which also isn't or wasn't ubuntu-latest yet.
Will address in a different PR.

@neatudarius
Copy link
Member Author

Getting 24.10 is unexpected - what we want is 24.04, which also isn't or wasn't ubuntu-latest yet. Will address in a different PR.

OK. We can address it in issue - #1

@neatudarius neatudarius merged commit 6666e03 into main Jun 19, 2024
steve-downey added a commit that referenced this pull request Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants