~ubuntu-branches/debian/stretch/cgal/stretch

« back to all changes in this revision

Viewing changes to include/CGAL/Circulator/Circulator_concepts.h

  • Committer: Package Import Robot
  • Author(s): Joachim Reichel
  • Date: 2014-04-05 10:56:43 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140405105643-jgnrpu2thtx23zfs
Tags: 4.4-1
* New upstream release.
* Remove patches do-not-link-example-with-qt4-support-library.patch and
  fix_jet_fitting_3.patch (applied upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
  BOOST_CONCEPT_USAGE(ForwardCirculator)
67
67
  {
68
 
    BOOST_CONCEPT_ASSERT((boost::SignedInteger<difference_type>));
69
 
    BOOST_CONCEPT_ASSERT((boost::Convertible<iterator_category, CGAL::Forward_circulator_tag>));
 
68
    // CGAL_UNUSED is needed with g++ 4.8, otherwise it warns:
 
69
    // "typedef ‘boost_concept_check68’ locally defined but not used
 
70
    // [-Wunused-local-typedefs]"
 
71
    BOOST_CONCEPT_ASSERT((boost::SignedInteger<difference_type>)) CGAL_UNUSED;
 
72
    BOOST_CONCEPT_ASSERT((boost::Convertible<iterator_category, CGAL::Forward_circulator_tag>)) CGAL_UNUSED;
70
73
    
71
74
    boost::require_boolean_expr(a == NULL);
72
75
    boost::require_boolean_expr(a != NULL);
87
90
{
88
91
  BOOST_CONCEPT_USAGE(BidirectionalCirculator)
89
92
  {
90
 
    BOOST_CONCEPT_ASSERT((boost::Convertible<typename C::iterator_category, CGAL::Bidirectional_circulator_tag>));
 
93
    BOOST_CONCEPT_ASSERT((boost::Convertible<typename C::iterator_category, CGAL::Bidirectional_circulator_tag>)) CGAL_UNUSED;
91
94
    --a;
92
95
    a--;
93
96
  }
101
104
{
102
105
  BOOST_CONCEPT_USAGE(RandomAccessCirculator)
103
106
  {
104
 
    BOOST_CONCEPT_ASSERT((boost::Convertible<typename C::iterator_category, CGAL::Random_access_circulator_tag>));
 
107
    BOOST_CONCEPT_ASSERT((boost::Convertible<typename C::iterator_category, CGAL::Random_access_circulator_tag>)) CGAL_UNUSED;
105
108
    c += n; // addition
106
109
    c = c + n; c = n + c;
107
110
    c -= n; // subtraction