src/parser/Unit.hh
inline bool is_compatible(Unit const &a, Unit const &b) {
  return rtt_dsxx::soft_equiv(a.m, b.m) && rtt_dsxx::soft_equiv(a.kg, b.kg) &&
         rtt_dsxx::soft_equiv(a.s, b.s) && rtt_dsxx::soft_equiv(a.A, b.A) &&
         rtt_dsxx::soft_equiv(a.K, b.K) && rtt_dsxx::soft_equiv(a.mol, b.mol) &&
         rtt_dsxx::soft_equiv(a.cd, b.cd) && rtt_dsxx::soft_equiv(a.rad, b.rad) &&
         rtt_dsxx::soft_equiv(a.sr, b.sr);
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Test two units for compatibility
 *
 * Compare two Units for equality in dimensions only.  Ignore the conversion
 * factor.  For exact test of equality, use the \c operator== function.
 *
 * \param a First factor
 * \param b Second factor
 * \return \c true if the units are compatible; \c false otherwise
 */
\brief Test two units for compatibility
Compare two Units for equality in dimensions only.  Ignore the conversion
factor.  For exact test of equality, use the \c operator== function.


\ brief Test two units for compatibility Compare two Units for equality in dimensions only . Ignore the conversion factor . For exact test of equality use the \ c operator == function .
inline bool is_compatible(Unit const &a, Unit const &b) {
  return rtt_dsxx::soft_equiv(a.m, b.m) && rtt_dsxx::soft_equiv(a.kg, b.kg) &&
         rtt_dsxx::soft_equiv(a.s, b.s) && rtt_dsxx::soft_equiv(a.A, b.A) &&
         rtt_dsxx::soft_equiv(a.K, b.K) && rtt_dsxx::soft_equiv(a.mol, b.mol) &&
         rtt_dsxx::soft_equiv(a.cd, b.cd) && rtt_dsxx::soft_equiv(a.rad, b.rad) &&
         rtt_dsxx::soft_equiv(a.sr, b.sr);
}
inline bool is_compatible ( Unit const & a , Unit const & b ) { return rtt_dsxx :: soft_equiv ( a . m , b . m ) && rtt_dsxx :: soft_equiv ( a . kg , b . kg ) && rtt_dsxx :: soft_equiv ( a . s , b . s ) && rtt_dsxx :: soft_equiv ( a . A , b . A ) && rtt_dsxx :: soft_equiv ( a . K , b . K ) && rtt_dsxx :: soft_equiv ( a . mol , b . mol ) && rtt_dsxx :: soft_equiv ( a . cd , b . cd ) && rtt_dsxx :: soft_equiv ( a . rad , b . rad ) && rtt_dsxx :: soft_equiv ( a . sr , b . sr ) ; }
\brief Test two units for compatibility
 Compare two Units for equality in dimensions only.
\ brief Test two units for compatibility Compare two Units for equality in dimensions only .