<div dir="ltr">Hello Dave,<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>Good call, you are right.  The compiler is not ignoring it.  The only reason g++ may not be flagging it is that xstream::digest::stream::reset() is a templated class and so the code within is only being generated and compiled on an as-needed basis.  As long as nobody actually invokes the reset method on a generated class of this type, no code is actually being generated for this method, and it does not get flagged.</div>

<div><br></div><div>For example, check out the simple program attached (t.h, t.c) and compile it with g++ first without the violator() line enabled in t.c, and then with the comment slashes removed.  Observe the difference.  I am running g++ v 4.4.7.</div>
<font color="#888888">
<div><br></div><div>-Richard Jones</div></font></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 11:14 AM,  <<a href="mailto:Hall-D.SVN.Repository@jlab.org">Hall-D.SVN.Repository@jlab.org</a>> wrote:<br>

<blockquote class="gmail_quote">Author: davidl<br>
Date: 2013-10-23 11:14:40 -0400 (Wed, 23 Oct 2013)<br>
New Revision: 11767<br>
<br>
Modified:<br>
   trunk/sim-recon/src/external/xstream/include/xstream/digest.h<br>
Log:<br>
Made sync() method of xstream::digest::stream protected instead of private.<br>
The clang compiler gave an error when compiling the xstream::digest::common<br>
class method reset() which called sync(). I'm not sure why this has not been<br>
an issue before since it seems calling a private member of a base class is<br>
is a textbook violation of the use of "private". Note that this did not give<br>
a compile time error when using g++. Both are default compilers on Mac OS X<br>
10.7.5.<br>
<br>
<br>
</blockquote></div><br></div>
</div></div></div><br></div>