aboutsummaryrefslogtreecommitdiff
path: root/src/archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/archive.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/archive.cpp b/src/archive.cpp
index 7208bae..11c632a 100644
--- a/src/archive.cpp
+++ b/src/archive.cpp
@@ -325,6 +325,20 @@ Bu::Archive &Bu::operator>>(Bu::Archive &s, Bu::Archival &p)
325 return s; 325 return s;
326} 326}
327 327
328Bu::Archive &Bu::operator<<(Bu::Archive &ar, class Bu::Archival *p )
329{
330 printf("Writing a pointer to an archive...\n");
331 ar << *p;
332 return ar;
333}
334
335Bu::Archive &Bu::operator>>(Bu::Archive &ar, class Bu::Archival *p )
336{
337 printf("Reading a pointer to an archive...\n");
338 ar >> *p;
339 return ar;
340}
341
328Bu::Archive &Bu::operator<<( Bu::Archive &ar, std::string &s ) 342Bu::Archive &Bu::operator<<( Bu::Archive &ar, std::string &s )
329{ 343{
330 ar << (uint32_t)s.length(); 344 ar << (uint32_t)s.length();