hi -

it has long been that the methods that dereference a const
datavector&lt;t&gt; (operator[], etc), return a `const t*',
even though the value_type is `t*'.

however, datavector&lt;t&gt;::const_iterator has been inconsistent with this,
in that dereferencing the iterator returns a `t*'.

we are trying to change this feature of datavector::const_iterator, so that
dereferencing it will also return a `const t*', consistent with
datavector.  we hope this will help catch instances where
data objects are unintentionally modified.

these changes are in datamodel-00-23-21.
unfortunately, this requires some changes in client packages.

here are the changes in jetrec that were required to be
compatible with these changes.

+verbatim+
index: src/jetcopytool.cxx
===================================================================
--- src/jetcopytool.cxx	(revision 447210)
+++ src/jetcopytool.cxx	(working copy)
@@ -84,7 +84,7 @@
 	  jetcollection::const_iterator lastjet  = constjets-&gt;end();
 	  for ( ; firstjet != lastjet; firstjet++ )
 	    {
-              jet *injet = *firstjet;
+              const jet *injet = *firstjet;
               jet* newjet = new jet(injet);
               if (usesigstate){
                 newjet-&gt;setjetauthor(injet-&gt;jetauthor());
-verbatim-

i also had this change to get rid of unused variable warnings.

+verbatim+
index: src/jetsplitmergetool.cxx
===================================================================
--- src/jetsplitmergetool.cxx	(revision 447210)
+++ src/jetsplitmergetool.cxx	(working copy)
@@ -203,7 +203,7 @@
 		  jet* j = *itr;
 		  msg( msg::debug ) &lt;&lt; &quot; zero e jet &quot;&lt;&lt; j-&gt;size() &lt;&lt; endreq;
 		  jet::constituent_iterator itrtest  = j-&gt;firstconstituent();
-		  jet::constituent_iterator itrteste = j-&gt;lastconstituent();
+		  //jet::constituent_iterator itrteste = j-&gt;lastconstituent();
 		  for ( ;itro != itroe; ++itro ) msg( msg::debug ) &lt;&lt; &quot; constit e=&quot;&lt;&lt; (*itrtest)-&gt;e() &lt;&lt; &quot; eta,phi=&quot;&lt;&lt; (*itrtest)-&gt;eta() &lt;&lt; &quot;,&quot;&lt;&lt; (*itrtest)-&gt;phi() &lt;&lt; endreq;
 		}
 	      }
-verbatim-
