Nicolas Deroche
2013-06-04 16:07:39 UTC
Hello,
I have a simple IpAddress class, basically a std::string container.
I would like to make it streamable using SOCI, ie
soci::statement st =
(sql.prepare << "SELECT lastlogin_ip FROM `accounts` WHERE `id`=':ii'",
soci::into(account->lastlogin_ip),
soci::use(id, "ii"));
st.execute();
And same for soci::use(ip, "the_ip_ind");
How can I do it ?
Thanks, nico.
I have a simple IpAddress class, basically a std::string container.
I would like to make it streamable using SOCI, ie
soci::statement st =
(sql.prepare << "SELECT lastlogin_ip FROM `accounts` WHERE `id`=':ii'",
soci::into(account->lastlogin_ip),
soci::use(id, "ii"));
st.execute();
And same for soci::use(ip, "the_ip_ind");
How can I do it ?
Thanks, nico.