mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 18:45:31 +08:00
re PR libstdc++/16154 (input iterator concept too restrictive)
2004-06-23 Paolo Carlini <pcarlini@suse.de> PR libstdc++/16154 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept): Don't require the _DefaultConstructibleConcept. (struct _ForwardIteratorConcept): Require it here. From-SVN: r83554
This commit is contained in:
parent
e1d2bd1e44
commit
dcbbf6f31b
@ -1,3 +1,10 @@
|
|||||||
|
2004-06-23 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
|
PR libstdc++/16154
|
||||||
|
* include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
|
||||||
|
Don't require the _DefaultConstructibleConcept.
|
||||||
|
(struct _ForwardIteratorConcept): Require it here.
|
||||||
|
|
||||||
2004-06-22 Alexandre Oliva <aoliva@redhat.com>
|
2004-06-22 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* include/bits/istream.tcc (getline): Make sure arguments passed
|
* include/bits/istream.tcc (getline): Make sure arguments passed
|
||||||
|
@ -418,7 +418,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; };
|
|||||||
struct _TrivialIteratorConcept
|
struct _TrivialIteratorConcept
|
||||||
{
|
{
|
||||||
void __constraints() {
|
void __constraints() {
|
||||||
__function_requires< _DefaultConstructibleConcept<_Tp> >();
|
// __function_requires< _DefaultConstructibleConcept<_Tp> >();
|
||||||
__function_requires< _AssignableConcept<_Tp> >();
|
__function_requires< _AssignableConcept<_Tp> >();
|
||||||
__function_requires< _EqualityComparableConcept<_Tp> >();
|
__function_requires< _EqualityComparableConcept<_Tp> >();
|
||||||
// typedef typename std::iterator_traits<_Tp>::value_type _V;
|
// typedef typename std::iterator_traits<_Tp>::value_type _V;
|
||||||
@ -475,6 +475,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; };
|
|||||||
{
|
{
|
||||||
void __constraints() {
|
void __constraints() {
|
||||||
__function_requires< _InputIteratorConcept<_Tp> >();
|
__function_requires< _InputIteratorConcept<_Tp> >();
|
||||||
|
__function_requires< _DefaultConstructibleConcept<_Tp> >();
|
||||||
__function_requires< _ConvertibleConcept<
|
__function_requires< _ConvertibleConcept<
|
||||||
typename std::iterator_traits<_Tp>::iterator_category,
|
typename std::iterator_traits<_Tp>::iterator_category,
|
||||||
std::forward_iterator_tag> >();
|
std::forward_iterator_tag> >();
|
||||||
|
Loading…
Reference in New Issue
Block a user