Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:USCiLab/cereal into develop
Browse files Browse the repository at this point in the history
Conflicts:
	include/cereal/types/string.hpp
  • Loading branch information
AzothAmmo committed Mar 9, 2014
2 parents 44eb532 + 970aa9f commit 9ca38db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sandbox_vs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <cereal/types/vector.hpp>

#include <cereal/archives/binary.hpp>
//#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/xml.hpp>
#include <cereal/archives/json.hpp>

Expand Down
7 changes: 6 additions & 1 deletion unittests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1894,24 +1894,29 @@ void test_string_basic()

for(size_t i=0; i<100; ++i)
{
std::basic_string<char> o_string = random_basic_string<char>(gen);
std::basic_string<char> o_string = random_basic_string<char>(gen);
std::basic_string<char> o_string2 = "";

std::ostringstream os;
{
OArchive oar(os);
oar(o_string);
oar(o_string2);
}

std::basic_string<char> i_string;
std::basic_string<char> i_string2;

std::istringstream is(os.str());
{
IArchive iar(is);

iar(i_string);
iar(i_string2);
}

BOOST_CHECK_EQUAL(i_string, o_string);
BOOST_CHECK_EQUAL(i_string2, o_string2);
}
}

Expand Down

0 comments on commit 9ca38db

Please sign in to comment.