summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/boost_concept_check.h
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-23 16:03:52 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-23 16:03:52 +0000
commit1704f90ade1d807b8feb35fafce3036ec573909f (patch)
tree788797f43df20d0f1b10636815ec5c2a7216df7a /libstdc++-v3/include/bits/boost_concept_check.h
parent01145ae6d4895458e2c29d4e0e4e4dca23d183c2 (diff)
downloadppe42-gcc-1704f90ade1d807b8feb35fafce3036ec573909f.tar.gz
ppe42-gcc-1704f90ade1d807b8feb35fafce3036ec573909f.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83554 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/boost_concept_check.h')
-rw-r--r--libstdc++-v3/include/bits/boost_concept_check.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/boost_concept_check.h b/libstdc++-v3/include/bits/boost_concept_check.h
index cf084fb3ccf..7c99838dcb7 100644
--- a/libstdc++-v3/include/bits/boost_concept_check.h
+++ b/libstdc++-v3/include/bits/boost_concept_check.h
@@ -418,7 +418,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; };
struct _TrivialIteratorConcept
{
void __constraints() {
- __function_requires< _DefaultConstructibleConcept<_Tp> >();
+// __function_requires< _DefaultConstructibleConcept<_Tp> >();
__function_requires< _AssignableConcept<_Tp> >();
__function_requires< _EqualityComparableConcept<_Tp> >();
// typedef typename std::iterator_traits<_Tp>::value_type _V;
@@ -475,6 +475,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; };
{
void __constraints() {
__function_requires< _InputIteratorConcept<_Tp> >();
+ __function_requires< _DefaultConstructibleConcept<_Tp> >();
__function_requires< _ConvertibleConcept<
typename std::iterator_traits<_Tp>::iterator_category,
std::forward_iterator_tag> >();
OpenPOWER on IntegriCloud