Skip to content

Commit

Permalink
Updates to poly example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer-group committed Aug 31, 2024
1 parent cdde6ee commit 6eecf7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/poly/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
clang++ -std=c++20 -I. -I../../src -I/home/brian/Downloads/boost_1_83_0/ -Os sendPoly.cc -o sendPoly
clang++ -std=c++20 -I. -I../../src -I/home/brian/Downloads/boost_1_83_0/ -Os receivePoly.cc -o receivePoly
clang++ -std=c++20 -I. -I../../src -I/home/brian/Downloads/boost_1_86_0/ -Os sendPoly.cc -o sendPoly
clang++ -std=c++20 -I. -I../../src -I/home/brian/Downloads/boost_1_86_0/ -Os receivePoly.cc -o receivePoly
6 changes: 3 additions & 3 deletions example/poly/testing.mdl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void baseSwitch (auto& c,auto& buf){
inline void
derived1::marshalMembers (auto& buf)const{
base::marshalMembers(buf);
buf.receive(a);
receive(buf,a);
}

template<class R,class Z>
Expand All @@ -36,7 +36,7 @@ derived1::derived1 (::cmw::ReceiveBuffer<R,Z>& buf):
inline void
derived2::marshalMembers (auto& buf)const{
base::marshalMembers(buf);
buf.receive(b);
receive(buf,b);
}

template<class R,class Z>
Expand All @@ -47,7 +47,7 @@ derived2::derived2 (::cmw::ReceiveBuffer<R,Z>& buf):
inline void
derived3::marshalMembers (auto& buf)const{
derived1::marshalMembers(buf);
buf.receive(c);
receive(buf,c);
}

template<class R,class Z>
Expand Down
4 changes: 2 additions & 2 deletions src/cmwComplex.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ template<class T,class...Ts>
if(c.template is_registered<T>()){
if(::int32_t n=c.template size<T>();n>0){
segs=1;
buf.receive(T::typeNum);
buf.receive(n);
receive(buf,T::typeNum);
receive(buf,n);
for(T const& t:c.template segment<T>()){t.marshal(buf);}
}
}
Expand Down

0 comments on commit 6eecf7f

Please sign in to comment.