summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-opts.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-opts.h')
-rw-r--r--libmysqlpp/my-opts.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libmysqlpp/my-opts.h b/libmysqlpp/my-opts.h
new file mode 100644
index 0000000..e444fa8
--- /dev/null
+++ b/libmysqlpp/my-opts.h
@@ -0,0 +1,22 @@
+#ifndef MYSQL_OPTS_H
+#define MYSQL_OPTS_H
+
+#include <boost/optional.hpp>
+#include <string>
+#include <visibility.h>
+
+namespace MySQL {
+ typedef boost::optional<std::string> OptString;
+
+ DLL_PUBLIC const char * operator~(const OptString & os);
+}
+
+namespace std {
+ template <typename T>
+ DLL_PUBLIC std::istream & operator>>(std::istream & s, boost::optional<T> & o);
+ template <typename T>
+ DLL_PUBLIC std::istream & operator>>(std::istream & s, std::vector<T> & o);
+}
+
+#endif
+