From 904130a611019d3ecb7878e21035f6915b4b5702 Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 19 Jul 2010 22:51:33 +0000 Subject: shared_ptr for scores. todo: intrusive. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@327 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/error_surface.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vest/error_surface.cc') diff --git a/vest/error_surface.cc b/vest/error_surface.cc index 4e0af35c..754aa8de 100644 --- a/vest/error_surface.cc +++ b/vest/error_surface.cc @@ -6,9 +6,6 @@ using namespace std; ErrorSurface::~ErrorSurface() { - for (ErrorSurface::iterator i = begin(); i != end(); ++i) - //delete i->delta; - ; } void ErrorSurface::Serialize(std::string* out) const { @@ -29,7 +26,7 @@ void ErrorSurface::Serialize(std::string* out) const { } void ErrorSurface::Deserialize(ScoreType type, const std::string& in) { - istringstream is(in, ios::binary); + istringstream is(in, ios::binary); int segments; is.read((char*)&segments, sizeof(segments)); this->resize(segments); -- cgit v1.2.3