[odb-users] lookup ambiguity on db.query member template
Daniel James
danielpeterjames at gmail.com
Mon Apr 30 09:25:55 EDT 2012
Hi
I'm getting the following warning when compiling with clang:
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
driver.cxx:71:31: warning: lookup of 'query' in member access expression is
ambiguous; using member of 'odb::sqlite::database'
[-Wambiguous-member-template]
odb::result<Array> arrays(db.query<Array>());
^
/Users/dj5/opt/include/odb/database.ixx:243:3: note: lookup in the object
type
'odb::sqlite::database' refers here
query (bool cache)
^
/Users/dj5/opt/include/odb/query.hxx:71:9: note: lookup from the current
scope
refers here
class query;
^
I've included the following, possibly relevant headers:
#include <odb/database.hxx>
#include <odb/transaction.hxx>
#include <odb/tr1/memory.hxx>
#include <odb/connection.hxx>
#include <odb/schema-catalog.hxx>
#include <odb/sqlite/database.hxx>
I'm not sure if this is a known issue or if it's enough info to work with?
I think the correct one has been chosen any way!
Daniel
More information about the odb-users
mailing list