Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow domains as union of multiple ranges #21

Open
shoooe opened this issue Apr 26, 2015 · 1 comment
Open

Allow domains as union of multiple ranges #21

shoooe opened this issue Apr 26, 2015 · 1 comment
Labels

Comments

@shoooe
Copy link
Owner

shoooe commented Apr 26, 2015

No description provided.

@shoooe shoooe added the feature label Apr 26, 2015
@shoooe
Copy link
Owner Author

shoooe commented Apr 30, 2015

The syntax would end up with something like:

using domain = inom::union_of<inom::range<int, 0, 10>, inom::range<int, 30, 50>>::type;
using domain2 = inom::intersection_of<inom::range<int, 0, 20>, inom::range<int, 40, 50>>::type;
inom::integer<int, domain> x = 8_int;

which is just beautiful.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant