diff options
m--------- | PMC | 0 | ||||
m--------- | grextras | 0 | ||||
-rw-r--r-- | lib/top_block.cpp | 3 | ||||
-rw-r--r-- | tests/serialize_tags_test.cpp | 15 |
4 files changed, 4 insertions, 14 deletions
diff --git a/PMC b/PMC -Subproject 25659cae9c3ef959506cf7b79a6d7d744a07fe0 +Subproject 9233003e21852d02d62ac63cf35e95c417c2be9 diff --git a/grextras b/grextras -Subproject fe4c8f38056f25f98965eca33c7940c7e4fb13a +Subproject 03a7f9a4495e78cf2675ae1d4df27b5630b7296 diff --git a/lib/top_block.cpp b/lib/top_block.cpp index 9a402f4..2106a54 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -81,8 +81,7 @@ void TopBlock::start(void) (*this)->executor->post_all(TopAllocMessage()); } { - TopActiveMessage message; - (*this)->executor->post_all(message); + (*this)->executor->post_all(TopActiveMessage()); } } diff --git a/tests/serialize_tags_test.cpp b/tests/serialize_tags_test.cpp index 2a07e2b..58d9b1e 100644 --- a/tests/serialize_tags_test.cpp +++ b/tests/serialize_tags_test.cpp @@ -8,24 +8,15 @@ #include <PMC/Serialize.hpp> #include <gras/tags.hpp> -// include headers that implement a archive in simple text format -#include <boost/archive/polymorphic_text_oarchive.hpp> -#include <boost/archive/polymorphic_text_iarchive.hpp> -#include <sstream> #include <cstdlib> static PMCC loopback_test(PMCC p0) { std::cout << "\ndoing loopback test on " << p0 << std::endl; - std::stringstream ss; - boost::archive::polymorphic_text_oarchive oa(ss); + const std::string data = PMC::serialize(p0, "TEXT"); - oa << p0; - //std::cout << "stringstream holds " << ss.str() << std::endl; - - boost::archive::polymorphic_text_iarchive ia(ss); - PMCC p1; - ia >> p1; + std::cout << "serialized object " << data << std::endl; + PMCC p1 = PMC::deserialize(data, "TEXT"); return p1; } |