mirror of
https://github.com/boostorg/concept_check.git
synced 2025-08-02 05:54:38 +02:00
removed const_binary_predicate_archetype, made all predicates
and function objects have a const operator() [SVN r9912]
This commit is contained in:
@@ -332,7 +332,7 @@ namespace boost {
|
|||||||
unary_function_archetype() { }
|
unary_function_archetype() { }
|
||||||
public:
|
public:
|
||||||
unary_function_archetype(detail::dummy_constructor) { }
|
unary_function_archetype(detail::dummy_constructor) { }
|
||||||
const Return& operator()(const Arg&) {
|
const Return& operator()(const Arg&) const {
|
||||||
return static_object<Return>::get();
|
return static_object<Return>::get();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -343,7 +343,7 @@ namespace boost {
|
|||||||
binary_function_archetype() { }
|
binary_function_archetype() { }
|
||||||
public:
|
public:
|
||||||
binary_function_archetype(detail::dummy_constructor) { }
|
binary_function_archetype(detail::dummy_constructor) { }
|
||||||
const Return& operator()(const Arg1&, const Arg2&) {
|
const Return& operator()(const Arg1&, const Arg2&) const {
|
||||||
return static_object<Return>::get();
|
return static_object<Return>::get();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -354,7 +354,7 @@ namespace boost {
|
|||||||
unary_predicate_archetype() { }
|
unary_predicate_archetype() { }
|
||||||
public:
|
public:
|
||||||
unary_predicate_archetype(detail::dummy_constructor) { }
|
unary_predicate_archetype(detail::dummy_constructor) { }
|
||||||
const Return& operator()(const Arg&) {
|
const Return& operator()(const Arg&) const {
|
||||||
return static_object<Return>::get();
|
return static_object<Return>::get();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -365,23 +365,11 @@ namespace boost {
|
|||||||
binary_predicate_archetype() { }
|
binary_predicate_archetype() { }
|
||||||
public:
|
public:
|
||||||
binary_predicate_archetype(detail::dummy_constructor) { }
|
binary_predicate_archetype(detail::dummy_constructor) { }
|
||||||
const Return& operator()(const Arg1&, const Arg2&) {
|
|
||||||
return static_object<Return>::get();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template <class Arg1, class Arg2>
|
|
||||||
class const_binary_predicate_archetype {
|
|
||||||
typedef boolean_archetype Return;
|
|
||||||
const_binary_predicate_archetype() { }
|
|
||||||
public:
|
|
||||||
const_binary_predicate_archetype(detail::dummy_constructor) { }
|
|
||||||
const Return& operator()(const Arg1&, const Arg2&) const {
|
const Return& operator()(const Arg1&, const Arg2&) const {
|
||||||
return static_object<Return>::get();
|
return static_object<Return>::get();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
// Iterator Archetype Classes
|
// Iterator Archetype Classes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user