SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

Better type for getColumn

Open reverofevil opened this issue 9 years ago • 7 comments

It would be better to have getColumn<T>(n) syntax, because we need to set the type of the return value anyway. Writing static_cast<T>(query.getColumn(n)) is way too verbose. You can achieve that by partial specialization of some class with static methods.

reverofevil avatar Oct 21 '14 17:10 reverofevil