Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-03-28 17:02:27

>> I guess gcc 3.4.4 just doesn't cut it these days!
> Try commenting out quantity.hpp line 57

Good point. Clearly, for built-in types, this check is not necessary,
but could matter quite a bit in, for example, cases like this:

quantity<length,boost::numeric::ublas::vector> q;

q = q;

If commenting the if (this == &source) line out helps, we should
probably deal with it since builtin types are likely to represent the
vast bulk of actual uses of the library...

         this_type& operator=(const this_type& source)
              if (this == &source) return *this;

              val_ = source.val_;

              return *this;


Boost list run by bdawes at, gregod at, cpdaniel at, john at