From ee85ed89a1aaf1e7a4864db3f822f04d3dc47bc6 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 30 Sep 2003 11:41:40 +0000 Subject: [PATCH] Added checks on constructor and assign member function usage. [SVN r20230] --- test/concepts/concept_check.cpp | 7 +++++++ test/concepts/wide_concept_check.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/test/concepts/concept_check.cpp b/test/concepts/concept_check.cpp index 1e7e5be5..266362cc 100644 --- a/test/concepts/concept_check.cpp +++ b/test/concepts/concept_check.cpp @@ -30,7 +30,14 @@ int main() // don't bother testing as it doesn't work: #if !BOOST_WORKAROUND(_MSC_VER, < 1310) typedef boost::bidirectional_iterator_archetype iterator_type; + typedef boost::input_iterator_archetype input_iterator_type; + input_iterator_type i, j; +#if!defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(__IBMCPP__) + boost::regex r(i, j); + r.assign(i, j); +#else boost::regex r; +#endif iterator_type a, b; boost::detail::dummy_constructor dummy; boost::output_iterator_archetype out(dummy); diff --git a/test/concepts/wide_concept_check.cpp b/test/concepts/wide_concept_check.cpp index 52f2031d..0e4f2559 100644 --- a/test/concepts/wide_concept_check.cpp +++ b/test/concepts/wide_concept_check.cpp @@ -30,7 +30,14 @@ int main() // don't bother testing as it doesn't work: #if !BOOST_WORKAROUND(_MSC_VER, < 1310) typedef boost::bidirectional_iterator_archetype iterator_type; + typedef boost::input_iterator_archetype input_iterator_type; + input_iterator_type i, j; +#if!defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(__IBMCPP__) + boost::wregex r(i, j); + r.assign(i, j); +#else boost::wregex r; +#endif iterator_type a, b; boost::detail::dummy_constructor dummy; boost::output_iterator_archetype out(dummy);