Author: wyoung
Date: Mon Dec 31 19:02:25 2007
New Revision: 2061

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2061&view=rev
Log:
VS2003 compatibility tweaks

Modified:
    trunk/lib/datetime.h
    trunk/lib/query.cpp

Modified: trunk/lib/datetime.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/datetime.h?rev=2061&r1=2060&r2=2061&view=diff
==============================================================================
--- trunk/lib/datetime.h (original)
+++ trunk/lib/datetime.h Mon Dec 31 19:02:25 2007
@@ -46,19 +46,19 @@
 /// This template also defines interfaces for converting the object to
 /// a string form, which a subclass must define.
 template <class T>
-struct DTbase
+struct MYSQLPP_EXPORT DTbase
 {
        /// \brief Destroy object
        virtual ~DTbase() { }
 
        /// \brief Return a copy of the item in C++ string form
-       MYSQLPP_EXPORT operator std::string() const;
+       operator std::string() const;
 
        /// \brief Compare this object to another of the same type
        ///
        /// Returns < 0 if this object is "before" the other, 0 of they are
        /// equal, and > 0 if this object is "after" the other.
-       MYSQLPP_EXPORT virtual int compare(const T& other) const = 0;
+       virtual int compare(const T& other) const = 0;
 
        /// \brief Returns true if "other" is equal to this object
        bool operator ==(const T& other) const
@@ -193,10 +193,10 @@
        ///
        /// This method is protected because it is merely the engine used
        /// by the various operators in DTbase.
-       MYSQLPP_EXPORT int compare(const DateTime& other) const;
+       int compare(const DateTime& other) const;
 
        /// \brief Parse a MySQL date and time string into this object.
-       MYSQLPP_EXPORT cchar* convert(cchar*);
+       cchar* convert(cchar*);
 
        /// \brief Returns true if 'now' member is true and all other
        /// members are zero.
@@ -282,10 +282,10 @@
        ///
        /// Returns < 0 if this date is before the other, 0 of they are
        /// equal, and > 0 if this date is after the other.
-       MYSQLPP_EXPORT int compare(const Date& other) const;
+       int compare(const Date& other) const;
 
        /// \brief Parse a MySQL date string into this object.
-       MYSQLPP_EXPORT cchar* convert(cchar*);
+       cchar* convert(cchar*);
 };
 
 /// \brief Inserts a Date object into a C++ stream
@@ -352,13 +352,13 @@
        explicit Time(const Str& str) { convert(str.c_str()); }
 
        /// \brief Parse a MySQL time string into this object.
-       MYSQLPP_EXPORT cchar* convert(cchar*);
+       cchar* convert(cchar*);
 
        /// \brief Compare this time to another.
        ///
        /// Returns < 0 if this time is before the other, 0 of they are
        /// equal, and > 0 if this time is after the other.
-       MYSQLPP_EXPORT int compare(const Time& other) const;
+       int compare(const Time& other) const;
 };
 
 /// \brief Inserts a Time object into a C++ stream in a MySQL-compatible

Modified: trunk/lib/query.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=2061&r1=2060&r2=2061&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Mon Dec 31 19:02:25 2007
@@ -236,7 +236,7 @@
        return *this;
 }
 
-Query::operator private_bool_type() const
+Query::operator Query::private_bool_type() const
 {
        return *conn_ && copacetic_ ? &Query::copacetic_ : 0;
 }


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

Reply via email to