Skip to content
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

[common] Add always-unsigned index type uindex_t dependent on index_t #4205

Merged
merged 2 commits into from
Jun 19, 2020

Conversation

haritha-j
Copy link
Contributor

No description provided.

@haritha-j haritha-j added priority: gsoc Reason for prioritization module: common labels Jun 18, 2020
@kunaltyagi kunaltyagi added changelog: new feature Meta-information for changelog generation needs: more work Specify why not closed/merged yet labels Jun 18, 2020
@kunaltyagi kunaltyagi changed the title [common] Add unsigned index type [common] Add always-unsigned index type uindex_t dependent on index_t Jun 18, 2020
@kunaltyagi kunaltyagi added needs: code review Specify why not closed/merged yet and removed needs: more work Specify why not closed/merged yet labels Jun 19, 2020
* Unsigned index that mirrors the type of the index_t
*/
using uindex_t = detail::int_type_t<detail::index_type_size, false>;
static_assert(!std::is_signed<uindex_t>::value, "`uindex_t` must be unsigned");
Copy link
Member

@SergioRAgostinho SergioRAgostinho Jun 19, 2020

Choose a reason for hiding this comment

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

I'm not sure if this check should be here but it's minor. I think I would have placed it somewhere in the unit tests.

@SergioRAgostinho SergioRAgostinho merged commit ddf215e into PointCloudLibrary:master Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: new feature Meta-information for changelog generation module: common needs: code review Specify why not closed/merged yet priority: gsoc Reason for prioritization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants