fixed: program_mode was not set in cctor

fixed: container was not correctly parsed (in template mode)




git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@1139 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-11-01 21:52:33 +00:00
parent a6b767a223
commit bf62d44346
3 changed files with 58 additions and 59 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2007-2015, Tomasz Sowa
* Copyright (c) 2007-2018, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -363,6 +363,7 @@ Generator<StreamType>::Generator() : empty_stream()
can_find_in_cache = true;
can_use_vars = true;
expression_parser = nullptr;
program_mode = false;
}
@@ -396,6 +397,7 @@ Generator<StreamType> & Generator<StreamType>::operator=(const Generator<StreamT
block_stack_size = n.block_stack_size;
ezc_out_stack_size = n.ezc_out_stack_size;
expression_parser = n.expression_parser;
program_mode = n.program_mode;
// vars doesn't have to be copied