mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-30 04:27:33 +02:00
Fix for Ticket #2628.
Sequence containers are not required to have a size_type constructor. The standard only requires that sequences have an S(size_type, value_type) constructor.
This commit is contained in:
@ -818,9 +818,8 @@ namespace boost
|
|||||||
BOOST_CONCEPT_USAGE(Sequence)
|
BOOST_CONCEPT_USAGE(Sequence)
|
||||||
{
|
{
|
||||||
S
|
S
|
||||||
c(n),
|
c(n, t),
|
||||||
c2(n, t),
|
c2(first, last);
|
||||||
c3(first, last);
|
|
||||||
|
|
||||||
c.insert(p, t);
|
c.insert(p, t);
|
||||||
c.insert(p, n, t);
|
c.insert(p, n, t);
|
||||||
@ -833,7 +832,6 @@ namespace boost
|
|||||||
|
|
||||||
ignore_unused_variable_warning(c);
|
ignore_unused_variable_warning(c);
|
||||||
ignore_unused_variable_warning(c2);
|
ignore_unused_variable_warning(c2);
|
||||||
ignore_unused_variable_warning(c3);
|
|
||||||
ignore_unused_variable_warning(r);
|
ignore_unused_variable_warning(r);
|
||||||
const_constraints(c);
|
const_constraints(c);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user