mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added comment about serialization hack
This commit is contained in:
parent
c0d8735251
commit
97d0df0737
@ -212,7 +212,7 @@ class RsTypeSerializer
|
||||
{
|
||||
ctx.mOffset += 4 ;
|
||||
for(typename std::set<T>::iterator it(v.begin());it!=v.end();++it)
|
||||
serial_process(j,ctx,const_cast<T&>(*it) ,member_name) ;
|
||||
serial_process(j,ctx,const_cast<T&>(*it) ,member_name) ; // the const cast here is a hack to avoid serial_process to instantiate serialise(const T&)
|
||||
}
|
||||
break ;
|
||||
|
||||
@ -234,7 +234,7 @@ class RsTypeSerializer
|
||||
uint32_t n=v.size();
|
||||
serial_process(j,ctx,n,"temporary size") ;
|
||||
for(typename std::set<T>::iterator it(v.begin());it!=v.end();++it)
|
||||
serial_process(j,ctx,const_cast<T&>(*it) ,member_name) ;
|
||||
serial_process(j,ctx,const_cast<T&>(*it) ,member_name) ; // the const cast here is a hack to avoid serial_process to instantiate serialise(const T&)
|
||||
}
|
||||
break ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user