forked from boostorg/utility
fixed bug in policy object construction
[SVN r9100]
This commit is contained in:
@ -85,7 +85,7 @@ int main() {
|
|||||||
|
|
||||||
typedef boost::filter_iterator_generator<is_positive_number, int*, int> Gen;
|
typedef boost::filter_iterator_generator<is_positive_number, int*, int> Gen;
|
||||||
is_positive_number predicate;
|
is_positive_number predicate;
|
||||||
Gen::policies_type policies(numbers + N, predicate);
|
Gen::policies_type policies(predicate, numbers + N);
|
||||||
Gen::type filter_iter_first(numbers, policies);
|
Gen::type filter_iter_first(numbers, policies);
|
||||||
Gen::type filter_iter_last(numbers + N, policies);
|
Gen::type filter_iter_last(numbers + N, policies);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user