operatorbool(){returnio;}//!< to drive QBind<TResult,T>() traversal
protected:
...
...
@@ -133,9 +143,9 @@ protected:
returntrue;}
// Val<TResult> prevents QBind from getting out() of an outer Seq for instance
template<typenameT>boolbind(constT&t){returnQBind<QCborWriter,T>::bind(Val<QCborWriter>(QCborWriter(this)),const_cast<T&>(t));}// t will not be modified anyway
// Val<TResult> prevents QBind from getting out() of an outer Seq for instance
template<typenameT>boolbind(constT&t){returnQBind<QJsonBuilder,T>::bind(Val<QJsonBuilder>(QJsonBuilder(this)),const_cast<T&>(t));}// t will not be modified anyway
template<typenameT>boolbind(constT&t){returnQBind<QJsonBuilder,T>::bind(QJsonBuilder(this).value(),const_cast<T&>(t));}// t will not be modified anyway
template<classT_>friendclassVal;// enables calling methods below through operator->()
...
...
@@ -88,26 +99,20 @@ protected:
boolbind(constchar*s){io->write(s);returntrue;}
// Val<TResult> prevents QBind from getting out() of an outer Seq for instance
template<typenameT>boolbind(constT&t){returnQBind<TextWriter,T>::bind(Val<TextWriter>(TextWriter(this)),const_cast<T&>(t));}// t will not be modified anyway