diff --git a/alib2str/src/container/string/ObjectsSet.h b/alib2str/src/container/string/ObjectsSet.h index a076dcd230fa30c6a0f42d0b0c10f2ba0e394ceb..4c4a9ae5cc72d4be97405df28b8cefa34e706d56 100644 --- a/alib2str/src/container/string/ObjectsSet.h +++ b/alib2str/src/container/string/ObjectsSet.h @@ -28,6 +28,8 @@ ext::set < ValueType > stringApi < ext::set < ValueType > >::parse ( std::istrea if(token.type != container::ContainerFromStringLexer::TokenType::SET_BEGIN) throw exception::CommonException("Expected SET_BEGIN token."); + token = container::ContainerFromStringLexer::next ( input ); + ext::set<ValueType> objectsSet; if(token.type != container::ContainerFromStringLexer::TokenType::SET_END) while(true) { container::ContainerFromStringLexer::putback(input, std::move(token)); diff --git a/alib2str/src/container/string/ObjectsVector.h b/alib2str/src/container/string/ObjectsVector.h index 52d0cc3ebcd3aaa4daae321386cc995e9444f134..547c11bfe2cb41bc15f7898a8f0365f44b44bce2 100644 --- a/alib2str/src/container/string/ObjectsVector.h +++ b/alib2str/src/container/string/ObjectsVector.h @@ -28,6 +28,8 @@ ext::vector < ValueType > stringApi < ext::vector < ValueType > >::parse ( std:: if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_BEGIN) throw exception::CommonException("Expected VECTOR_BEGIN token."); + token = container::ContainerFromStringLexer::next ( input ); + ext::vector<ValueType> objectsVector; if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_END) while(true) { container::ContainerFromStringLexer::putback(input, std::move(token));