Objects Compiled
This commit is contained in:
parent
ba95747ef9
commit
64e1f78739
52 changed files with 384 additions and 370 deletions
|
|
@ -166,6 +166,21 @@ namespace tp {
|
|||
}
|
||||
}
|
||||
|
||||
template<class tArchiver>
|
||||
void archiveWrite(tArchiver& ar) const {
|
||||
auto size = this->size();
|
||||
ar << size;
|
||||
ar.writeBytes(read(), size);
|
||||
}
|
||||
|
||||
template<class tArchiver>
|
||||
void archiveRead(tArchiver& ar) {
|
||||
Index size;
|
||||
ar >> size;
|
||||
resize(size);
|
||||
ar.readBytes(write(), size);
|
||||
}
|
||||
|
||||
public: // Syntax sugars
|
||||
|
||||
explicit StringTemplate(alni val) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue