#ifndef GENERS_PACKERIOCYCLE_HH_ #define GENERS_PACKERIOCYCLE_HH_ #include "geners/GenericIO.hh" namespace gs { namespace Private { // Before calling this, make sure that iostack is properly filled template struct PackerIOCycle { template inline static bool read( Pack* s, Stream& is, std::vector >& iostack) { return PackerIOCycle::read(s, is, iostack) && process_item( std::get(*s), is, &iostack[N-1], false); } }; template struct PackerIOCycle { template inline static bool read(Pack*, Stream&, std::vector >&) {return true;} }; } } #endif // GENERS_PACKERIOCYCLE_HH_