Re: [Cppcms-users] dbixx and time()
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-10-14 13:12:49
|
> > I save it as an integer. > The problem is that the code won't compile: > > /usr/local/include/dbixx/dbixx.h:148: error: call of overloaded ‘bind(long > > int&, bool)’ is ambiguous. > > Augustin. > Yes, you are right, cast it to long long it and this would work. time_t t = time(NULL); sql << "SELECT COUNT(*) FROM table WHERE time < ?", static_cast<long long int>(t); You may open a bug/feature ticket to show that bind/fetch member functions require better overloading. Artyom |