Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on Serialize Vector vs Individual Elements

$
0
0
If Boost can serialize the whole thing in one step, then doing that (instead of manually feeding it each element) is less verbose and therefore better. .write((char*)&recipe, sizeof(recipe)) wouldn't work correctly if recipe contains a vector, so you have to apply it to every element (assuming it will work for them in the first place).

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>