Author: mysqlpp
Date: Thu Apr 30 03:31:59 2009
New Revision: 2509

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2509&view=rev
Log:
Added a few missing MYSQLPP_EXPORTs to operator<<()s for manipulators,
to allow use of them with VC++ in the DLL case, and probably MinGW,
too. Probably these functions were inline at one point, then got moved
into manip.cpp.  Problem reported and the fix diagnosed by Radim Dostál
<[email protected]>  Actual patch by me.

Modified:
    trunk/lib/manip.h

Modified: trunk/lib/manip.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/manip.h?rev=2509&r1=2508&r2=2509&view=diff
==============================================================================
--- trunk/lib/manip.h (original)
+++ trunk/lib/manip.h Thu Apr 30 03:31:59 2009
@@ -203,11 +203,12 @@
 /// flag.  You can set it yourself, but SQLTypeAdapter's ctors should set
 /// it correctly for you.
 
-MYSQLPP_EXPORT SQLQueryParms& operator <<(quote_only_type2 p,
-               SQLTypeAdapter& in);
-
-
-std::ostream& operator <<(quote_only_type1 o, const SQLTypeAdapter& in);
+MYSQLPP_EXPORT SQLQueryParms&
+operator <<(quote_only_type2 p, SQLTypeAdapter& in);
+
+
+MYSQLPP_EXPORT std::ostream&
+operator <<(quote_only_type1 o, const SQLTypeAdapter& in);
 
 
 template <class ST>
@@ -287,7 +288,7 @@
 operator <<(quote_double_only_type2 p, SQLTypeAdapter& in);
 
 
-std::ostream&
+MYSQLPP_EXPORT std::ostream&
 operator <<(quote_double_only_type1 o, const SQLTypeAdapter& in);
 
 
@@ -361,15 +362,15 @@
 /// in.dont_escape is not.  If that is not the case, we insert the
 /// string data directly.
 
-MYSQLPP_EXPORT SQLQueryParms& operator <<(escape_type2 p,
-               SQLTypeAdapter& in);
+MYSQLPP_EXPORT SQLQueryParms&
+operator <<(escape_type2 p, SQLTypeAdapter& in);
 
 
 /// \brief Inserts anything that can be converted to SQLTypeAdapter into
 /// a stream, escaping special SQL characters as needed.
 
-MYSQLPP_EXPORT std::ostream& operator <<(escape_type1 o,
-               const SQLTypeAdapter& in);
+MYSQLPP_EXPORT std::ostream&
+operator <<(escape_type1 o, const SQLTypeAdapter& in);
 
 
 /// \enum do_nothing_type0
@@ -433,8 +434,8 @@
 /// \brief Inserts a SQLTypeAdapter into a stream, with no escaping or
 /// quoting.
 
-MYSQLPP_EXPORT SQLQueryParms& operator <<(do_nothing_type2 p,
-               SQLTypeAdapter& in);
+MYSQLPP_EXPORT SQLQueryParms&
+operator <<(do_nothing_type2 p, SQLTypeAdapter& in);
 
 #endif // !defined(DOXYGEN_IGNORE)
 
@@ -478,8 +479,8 @@
 /// \brief Inserts a SQLTypeAdapter into a stream, with no escaping or
 /// quoting, and without marking the string as having been "processed".
 
-MYSQLPP_EXPORT SQLQueryParms& operator <<(ignore_type2 p,
-               SQLTypeAdapter& in);
+MYSQLPP_EXPORT SQLQueryParms&
+operator <<(ignore_type2 p, SQLTypeAdapter& in);
 
 #endif // !defined(DOXYGEN_IGNORE)
 


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

Reply via email to