diff options
Diffstat (limited to 'libdbpp/selectcommandUtil.impl.h')
-rw-r--r-- | libdbpp/selectcommandUtil.impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdbpp/selectcommandUtil.impl.h b/libdbpp/selectcommandUtil.impl.h index 6446de0..a6d17ca 100644 --- a/libdbpp/selectcommandUtil.impl.h +++ b/libdbpp/selectcommandUtil.impl.h @@ -93,6 +93,13 @@ namespace DB { template<unsigned int C> inline typename std::tuple_element<C, std::tuple<Fn...>>::type Row<Fn...>::value() const { + return get<C>(); + } + + template<typename ... Fn> + template<unsigned int C> + inline typename std::tuple_element<C, std::tuple<Fn...>>::type Row<Fn...>::get() const + { typename std::tuple_element<C, std::tuple<Fn...>>::type a; sel->operator[](C) >> a; return a; |