Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using this KSY: ``` - id: one_cat type: cat valid: expr: _._sizeof == 1 ``` For C++11 changes this incorrect code: ``` m_one_cat = std::unique_ptr<cat_t>(new cat_t(m__io, this, m__root)); m_one_cat->_read(); { // Definition: cat_t* one_cat() { return m_one_cat.get(); } std::unique_ptr<cat_t> _ = one_cat(); if (!(1 == 1)) { throw kaitai::validation_expr_error<std::unique_ptr<debug_array_user_t::cat_t>>(one_cat(), _io(), std::string("/seq/0")); } } ``` to this: ``` m_one_cat = std::unique_ptr<cat_t>(new cat_t(m__io, this, m__root)); m_one_cat->_read(); { // Definition: cat_t* one_cat() { return m_one_cat.get(); } cat_t* _ = one_cat(); if (!(1 == 1)) { throw kaitai::validation_expr_error<debug_array_user_t::cat_t*>(one_cat(), _io(), std::string("/seq/0")); } } ```
- Loading branch information