From da21dd5dc9cece281c83f3011eb9efbeb5ada45a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 24 Oct 2007 02:41:56 +0000 Subject: Tried to get archive operators to recognize pointers, no luck so far. --- src/archive.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/archive.cpp') 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) return s; } +Bu::Archive &Bu::operator<<(Bu::Archive &ar, class Bu::Archival *p ) +{ + printf("Writing a pointer to an archive...\n"); + ar << *p; + return ar; +} + +Bu::Archive &Bu::operator>>(Bu::Archive &ar, class Bu::Archival *p ) +{ + printf("Reading a pointer to an archive...\n"); + ar >> *p; + return ar; +} + Bu::Archive &Bu::operator<<( Bu::Archive &ar, std::string &s ) { ar << (uint32_t)s.length(); -- cgit v1.2.3