Author: wyoung
Date: Wed Nov 28 07:24:59 2007
New Revision: 1912
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1912&view=rev
Log:
Implicit type conversion fix for VC++. (Application of clue-by-four,
more like...)
Modified:
trunk/lib/tiny_int.h
Modified: trunk/lib/tiny_int.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/tiny_int.h?rev=1912&r1=1911&r2=1912&view=diff
==============================================================================
--- trunk/lib/tiny_int.h (original)
+++ trunk/lib/tiny_int.h Wed Nov 28 07:24:59 2007
@@ -195,61 +195,61 @@
/// \brief Return this value minus \c i
this_type operator -(const this_type& i) const
{
- return value_ - i;
+ return value_ - i.value_;
}
/// \brief Return this value plus \c i
this_type operator +(const this_type& i) const
{
- return value_ + i;
+ return value_ + i.value_;
}
/// \brief Return this value multiplied by \c i
this_type operator *(const this_type& i) const
{
- return value_ * i;
+ return value_ * i.value_;
}
/// \brief Return this value divided by \c i
this_type operator /(const this_type& i) const
{
- return value_ / i;
+ return value_ / i.value_;
}
/// \brief Return the modulus of this value divided by \c i
this_type operator %(const this_type& i) const
{
- return value_ % i;
+ return value_ % i.value_;
}
/// \brief Return this value bitwise OR'd by \c i
this_type operator |(const this_type& i) const
{
- return value_ | i;
+ return value_ | i.value_;
}
/// \brief Return this value bitwise AND'd by \c i
this_type operator &(const this_type& i) const
{
- return value_ & i;
+ return value_ & i.value_;
}
/// \brief Return this value bitwise XOR'd by \c i
this_type operator ^(const this_type& i) const
{
- return value_ ^ i;
+ return value_ ^ i.value_;
}
/// \brief Return this value bitwise shifted left by \c i
this_type operator <<(const this_type& i) const
{
- return value_ << i;
+ return value_ << i.value_;
}
/// \brief Return this value bitwise shifted right by \c i
this_type operator >>(const this_type& i) const
{
- return value_ >> i;
+ return value_ >> i.value_;
}
private:
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits