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

cpp: construct bindings that take a default context #15

Open
wants to merge 2 commits into
base: continious-integration
Choose a base branch
from

Conversation

tobiasgrosser
Copy link
Member

@tobiasgrosser tobiasgrosser commented Aug 6, 2017

Here an idea how #14 could be addressed.

Not sure what to do with constructors that do not take any other arguments. How should the be distinguished from a default constructor that constructs an empty object. This currently happens only with isl_ast_build.

@tobiasgrosser
Copy link
Member Author

tobiasgrosser commented Aug 6, 2017

Here how the bindings would look like:

void test_default_ctx() {
	isl::set S1("{ [1] } ");
	isl::set S2("{ [2] } ");

	isl::set S12("{ [1] ; [2] } ");

	assert(S1.unite(S2).is_equal(S12));
}

@tobiasgrosser tobiasgrosser changed the title Construct bindings that take a default context cpp: construct bindings that take a default context Aug 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant