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

Relax constraint requiring that AutoFilters have unique output types #623

Merged
merged 1 commit into from
Jun 29, 2015

Conversation

codemercenary
Copy link
Contributor

Should be able to declare an AutoFilter method that has the same argument type twice as an output without problems, as this behavior is already supported for lambda functions and behaves the way one might expect.

Should be able to declare an `AutoFilter` method that has the same argument type twice as an output without problems, as this behavior is already supported for lambda functions and behaves the way one might expect.
@jnguyen75
Copy link
Contributor

Neat trick to count the args in test:
*factory += [&] (const Decoration<0>* args []) { while (*args++) nArgs++; };

Builds and tests pass on mac. Can merge when Travis passes

@codemercenary
Copy link
Contributor Author

Yep, I like the dereference-increment-test idiom. When I'm iterating a string, I use the same trick--finding the length of a string, for instance:

for(size_t i = 0; *p++; i++);

jnguyen75 added a commit that referenced this pull request Jun 29, 2015
Relax constraint requiring that AutoFilters have unique output types
@jnguyen75 jnguyen75 merged commit a458915 into develop Jun 29, 2015
@jnguyen75 jnguyen75 deleted the fix-multioutclass branch June 29, 2015 17:35
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.

2 participants