Pgsql::Col has now stream operator overload for boost::container::small_vector
This commit is contained in:
parent
f2639b9ea5
commit
e23164c98c
1 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
#define PGSQL_COL_H
|
#define PGSQL_COL_H
|
||||||
|
|
||||||
#include "Pgsql_Row.h"
|
#include "Pgsql_Row.h"
|
||||||
|
#include <boost/container/small_vector.hpp>
|
||||||
|
|
||||||
namespace Pgsql {
|
namespace Pgsql {
|
||||||
|
|
||||||
|
|
@ -56,6 +57,12 @@ namespace Pgsql {
|
||||||
return c.getAsArray<T>(std::back_inserter(s));
|
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>
|
template <typename T>
|
||||||
Col& operator>>(Col &c, T &s)
|
Col& operator>>(Col &c, T &s)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue