[odb-users] Compile error when combining query::[member].in_range and query::_ref([var])

Boris Kolpackov boris at codesynthesis.com
Fri Feb 27 06:12:28 EST 2015


Hi Jeroen,

Jeroen N. Witmond [Bahco] <jnw at xs4all.nl> writes:

>     result r (db->query<FourPoint>
>               (query::latitude.in_range(query::_ref(lat_min),
>                                         query::_ref(lat_max)) &&
>                query::longitude.in_range(query::_ref(lon_min),
>                                          query::_ref(lon_max))));

in_range() expects a pair of iterators. What you want is in().

Boris



More information about the odb-users mailing list