[concept_check] Uncalled const_constraints

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[concept_check] Uncalled const_constraints

Daniel James
Hi,

A couple of the const_constraints methods aren't called. Patch attached.

Daniel

Index: concept_check.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/concept_check.hpp,v
retrieving revision 1.30
diff -u -r1.30 concept_check.hpp
--- concept_check.hpp 31 Oct 2004 19:55:13 -0000 1.30
+++ concept_check.hpp 6 Mar 2006 19:17:18 -0000
@@ -904,6 +904,7 @@
       c.pop_back();
       reference r = c.back();
       ignore_unused_variable_warning(r);
+      const_constraints(c);
     }
     void const_constraints(const BackInsertionSequence& cc) {
       const_reference r = cc.back();
@@ -1026,6 +1027,7 @@
       ignore_unused_variable_warning(c);
       ignore_unused_variable_warning(c2);
       ignore_unused_variable_warning(c3);
+      const_constraints(c);
     }
     void const_constraints(const SortedAssociativeContainer& c) {
       kc = c.key_comp();

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost