Skip to content

Instantly share code, notes, and snippets.

@tmt514
Created July 10, 2019 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmt514/6cf6c1a9ad4c787c14516b4dde92d7bb to your computer and use it in GitHub Desktop.
Save tmt514/6cf6c1a9ad4c787c14516b4dde92d7bb to your computer and use it in GitHub Desktop.
#include "local_feature.hpp"
int main(void) {
LocalFeature local_feature(1.2, 1.3, 1.4);
std::stringstream ss;
boost::archive::text_oarchive oa{ss};
oa << local_feature;
std::string s = ss.str();
for (int i = 0; i < s.size(); i++)
printf("s[%d] = %c\n", i, s[i]);
return 0;
//ost::archive::text_iarchive ia{ss};
// LocalFeatures l2;
// ia >> l2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment