Pgsql::Col has now stream operator overload for boost::container::small_vector

This commit is contained in:
eelke 2018-11-17 19:36:12 +01:00
parent f2639b9ea5
commit e23164c98c

View file

@ -2,6 +2,7 @@
#define PGSQL_COL_H
#include "Pgsql_Row.h"
#include <boost/container/small_vector.hpp>
namespace Pgsql {
@ -56,6 +57,12 @@ namespace Pgsql {
return c.getAsArray<T>(std::back_inserter(s));
}
template <typename T, std::size_t N>
Col& operator>>(Col &c, boost::container::small_vector<T, N> &s)
{
return c.getAsArray<T>(std::back_inserter(s));
}
template <typename T>
Col& operator>>(Col &c, T &s)
{