I'll take your word for it, friend.


On Tue, May 13, 2014 at 10:47 PM, Anthony Scopatz
<notifications@github.com>wrote:

> In src/query_backend.h:
>
> > +/// The digest type for SHA1s
> > +class Digest {
> > + public:
> > +  unsigned int val[CYCLUS_SHA1_NINT];
> > +
> > +  /// Casts the value of this digest to a vector of the templated type.
> > +  template <typename T>
> > +  inline std::vector<T> cast() const {
> > +    std::vector<T> rtn = std::vector<T>(CYCLUS_SHA1_NINT);
> > +    for (unsigned int i = 0; i < CYCLUS_SHA1_NINT; ++i)
> > +      rtn[i] = (T) val[i];
> > +    return rtn;
> > +  };
> > +
> > +  // operators
> > +  inline friend std::ostream& operator<<(std::ostream& out, const cyclus::Digest& d) {
>
> Me neither, but it fails to compile without the friending.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cyclus/pull/840/files#r12619858>
> .
>



-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192