Skip to content
Snippets Groups Projects
Commit e33fa331 authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

alib2str: fix parsing set/vector

parent 76228ce8
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -28,6 +28,8 @@ ext::set < ValueType > stringApi < ext::set < ValueType > >::parse ( std::istrea ...@@ -28,6 +28,8 @@ ext::set < ValueType > stringApi < ext::set < ValueType > >::parse ( std::istrea
if(token.type != container::ContainerFromStringLexer::TokenType::SET_BEGIN) if(token.type != container::ContainerFromStringLexer::TokenType::SET_BEGIN)
throw exception::CommonException("Expected SET_BEGIN token."); throw exception::CommonException("Expected SET_BEGIN token.");
   
token = container::ContainerFromStringLexer::next ( input );
ext::set<ValueType> objectsSet; ext::set<ValueType> objectsSet;
if(token.type != container::ContainerFromStringLexer::TokenType::SET_END) while(true) { if(token.type != container::ContainerFromStringLexer::TokenType::SET_END) while(true) {
container::ContainerFromStringLexer::putback(input, std::move(token)); container::ContainerFromStringLexer::putback(input, std::move(token));
......
...@@ -28,6 +28,8 @@ ext::vector < ValueType > stringApi < ext::vector < ValueType > >::parse ( std:: ...@@ -28,6 +28,8 @@ ext::vector < ValueType > stringApi < ext::vector < ValueType > >::parse ( std::
if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_BEGIN) if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_BEGIN)
throw exception::CommonException("Expected VECTOR_BEGIN token."); throw exception::CommonException("Expected VECTOR_BEGIN token.");
   
token = container::ContainerFromStringLexer::next ( input );
ext::vector<ValueType> objectsVector; ext::vector<ValueType> objectsVector;
if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_END) while(true) { if(token.type != container::ContainerFromStringLexer::TokenType::VECTOR_END) while(true) {
container::ContainerFromStringLexer::putback(input, std::move(token)); container::ContainerFromStringLexer::putback(input, std::move(token));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment