| 385 | |
| 386 | template <typename T> |
| 387 | typename enable_if_c<std::numeric_limits<T>::is_integer>::type bind ( |
| 388 | unsigned long idx, |
| 389 | const T& item |
| 390 | ) |
| 391 | { |
| 392 | // unsigned ints won't fit into int all the time so put those into 64bit ints. |
| 393 | if (sizeof(T) < sizeof(int) || (sizeof(T)==sizeof(int) && is_signed_type<T>::value)) |
| 394 | bind_int(idx, item); |
| 395 | else |
| 396 | bind_int64(idx, item); |
| 397 | } |
| 398 | |
| 399 | void bind(unsigned long idx, const std::string& item) { bind_text(idx, item); } |
| 400 | void bind(unsigned long idx, const float& item ) { bind_double(idx, item); } |