Author: wyoung
Date: Wed Nov 28 05:20:42 2007
New Revision: 1904

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1904&view=rev
Log:
Removed both FieldTypes::operator[]() overloads.  It derives from
std::vector, and the class doesn't define its own operator[]s for other
purposes, so there's no need to explicitly pass these up to the base
class.  Probably a copy-and-paste error, because FieldNames -- which
also derives from std::vector -- does have an alternate operator[], so
it has to provide all variants unlike FieldTypes.

Modified:
    trunk/lib/field_types.h

Modified: trunk/lib/field_types.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/field_types.h?rev=1904&r1=1903&r2=1904&view=diff
==============================================================================
--- trunk/lib/field_types.h (original)
+++ trunk/lib/field_types.h Wed Nov 28 05:20:42 2007
@@ -75,19 +75,6 @@
                return *this;
        }
 
-       /// \brief Returns a field type within the list given its index.
-       mysql_type_info& operator [](int i)
-       {
-               return std::vector<mysql_type_info>::operator [](i);
-       }
-
-       /// \brief Returns a field type within the list given its index,
-       /// in const context.
-       const mysql_type_info& operator [](int i) const
-       {
-               return std::vector<mysql_type_info>::operator [](i);
-       }
-
 private:
        void init(const ResUse* res);
 };


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to