Author: mysqlpp
Date: Thu Nov 20 16:27:38 2008
New Revision: 2419
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2419&view=rev
Log:
Rounded out the set of overloaded ctors and connect() methods in
TCPConnection, WindowsNamedPipeConnection and UnixDomainSocketConnection
to overlap everything Connection defines, making all the new ones
private so they're uncallable. (No definitions for the declarations,
either.) This avoids warnings about hidden member functions when using
these specialized connection types on Solaris CC.
Modified:
trunk/lib/tcp_connection.h
trunk/lib/uds_connection.h
trunk/lib/wnp_connection.h
Modified: trunk/lib/tcp_connection.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/tcp_connection.h?rev=2419&r1=2418&r2=2419&view=diff
==============================================================================
--- trunk/lib/tcp_connection.h (original)
+++ trunk/lib/tcp_connection.h Thu Nov 20 16:27:38 2008
@@ -118,6 +118,20 @@
/// \return false if address fails to pass sanity checks
static bool parse_address(std::string& addr, unsigned int& port,
std::string& error);
+
+private:
+ /// \brief Provide uncallable versions of the parent class ctors we
+ /// don't want to provide so we don't get warnings about hidden
+ /// overloads with some compilers
+ TCPConnection(bool);
+ TCPConnection(const char*, const char*, const char*, const char*,
+ unsigned int);
+
+ /// \brief Explicitly override parent class version so we don't get
+ /// complaints about hidden overloads with some compilers
+ bool connect(const char* db, const char* server,
+ const char* user, const char* password,
+ unsigned int port);
};
Modified: trunk/lib/uds_connection.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/uds_connection.h?rev=2419&r1=2418&r2=2419&view=diff
==============================================================================
--- trunk/lib/uds_connection.h (original)
+++ trunk/lib/uds_connection.h Thu Nov 20 16:27:38 2008
@@ -96,6 +96,20 @@
///
/// \return false if address fails to pass sanity checks
static bool is_socket(const char* path, std::string* error = 0);
+
+private:
+ /// \brief Provide uncallable versions of the parent class ctors we
+ /// don't want to provide so we don't get warnings about hidden
+ /// overloads with some compilers
+ UnixDomainSocketConnection(bool);
+ UnixDomainSocketConnection(const char*, const char*, const char*,
+ const char*, unsigned int);
+
+ /// \brief Explicitly override parent class version so we don't get
+ /// complaints about hidden overloads with some compilers
+ bool connect(const char* db, const char* server,
+ const char* user, const char* password,
+ unsigned int port);
};
Modified: trunk/lib/wnp_connection.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/wnp_connection.h?rev=2419&r1=2418&r2=2419&view=diff
==============================================================================
--- trunk/lib/wnp_connection.h (original)
+++ trunk/lib/wnp_connection.h Thu Nov 20 16:27:38 2008
@@ -90,6 +90,20 @@
/// \return false if server address does not denote a Windows
/// named pipe connection, or we are not running on Windows
static bool is_wnp(const char* server);
+
+private:
+ /// \brief Provide uncallable versions of the parent class ctors we
+ /// don't want to provide so we don't get warnings about hidden
+ /// overloads with some compilers
+ WindowsNamedPipeConnection(bool);
+ WindowsNamedPipeConnection(const char*, const char*, const char*,
+ const char*, unsigned int);
+
+ /// \brief Explicitly override parent class version so we don't get
+ /// complaints about hidden overloads with some compilers
+ bool connect(const char* db, const char* server,
+ const char* user, const char* password,
+ unsigned int port);
};
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits