I'm using a fairly recent version of Poco , from 7.2023
getting the error
/home/omerbrandis/Downloads/poco-devel-24.7.2023/Data/include/Poco/Data/TypeHandler.h:121: error: call of overloaded ‘bind(std::size_t&, const Poco::Nullable&, Poco::Data::AbstractBinder::Direction&)’ is ambiguous
pBinder->bind(pos, obj, dir);
^~~~~~~
My code
for (std::vector<myStructure>::const_iterator It = myVector.begin() ; It != myVector.end(); It++)
{
.
.
SQLStmt << InsertString
.
.
, Poco::Data::Keywords::useRef(It->Struct.member)
}
however using a temporary works:
Poco::Nullable<bool> Temp = It->Struct.member;
, Poco::Data::Keywords::useRef(Temp)
Can someone point me in the right direction?