The following is not possible for any boost output archive:
int foo(){
return 4;
}
ar << static_cast<unsigned int>(foo());
Is there an alternative without out creating a local temporary x=foo()
.
and why is the underlying archive operator <<(T & t)
not const reference , for an output archive such that the above would work?
Aucun commentaire:
Enregistrer un commentaire