Serialization without Boost.Serialization

前端 未结 2 1152
一生所求
一生所求 2021-01-19 01:57

I\'m trying to implement a simple serialization/deserialization method for my code to be able to pass an object over the network using MPI. In an ideal world I would have us

2条回答
  •  醉梦人生
    2021-01-19 02:26

    Use an istrstream, which extracts from a char array. The header for this is . And, yes, formally it's deprecated in the C++ Standard. The committee indulged in a great deal of wishful thinking in its early days. istrstream is not going to go away.

提交回复
热议问题