summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-opts.h
blob: 3abd2717862480b9f1835253c573e209eebdc1bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MYSQL_OPTS_H
#define MYSQL_OPTS_H

#include <boost/optional.hpp>
#include <string>
#include <vector>
#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