# C++ Round-trip reverse code encountered parse error

**URL:** <https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343>\
**Category:** General Questions/Discussions\
**Created:** [March 4, 2013, 7:11pm UTC](https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343 "2013-03-04T19:11:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![progmachine](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/progmachine/32/438_2.png) [@progmachine](https://forums.visual-paradigm.com/u/progmachine)\
**Post date:** [March 5, 2013, 11:13am UTC](https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343/1 "2013-03-05T11:13:26Z")

</div>

I’m evaluating Visual Paradigm for UML SE 10.1 and trying to reverse my C++ code. The first attempt resulted in parse error.  
The code (Exception.hpp):

```auto

//=============================================================================================================================
// * Name : Exception.hpp
// * Author : Alexandr Kuznetsov
// * Created on: 25.12.2012
// * Copyright : Copyright xensoftlab. Содержимое этого файла является собственностью компании xensoftlab и не подлежит
// * распространению.
//=============================================================================================================================

#pragma once
#define __XEN_LANG_EXCEPTION_INCLUDED

//-----------------------------------------------------------------------------------------------------------------------------
#include <string>
#include <vector>
#include <memory>
#include <iostream>
#include "type_defs.hpp"
#include "ReservedAllocator.hpp"
//-----------------------------------------------------------------------------------------------------------------------------

namespace xen
{
namespace lang
{

template <typename T, int Allign = 0>
class Allocator;

template <typename charT, typename Alloc = Allocator<charT> >
class xen_string;

typedef xen_string<char> string;
typedef xen_string<wchar_t> wstring;

/**
 * Тип строки используемый исключениями, а так-же другими критичными для выполнения программы алгоритмами.
 * Этот тип использует резервную кучу динамической памяти.
 */
typedef std::basic_string<char, std::char_traits<char>, ReservedAllocator<char> > rstring;

...

```

The error message:

> [12:41:25] [Error] Unable to read file/home/progmachine/program/workspaces/xensoftlab.workspace/xen.core/src/xen.lang/Exception.hpp, Parse error at line 29, column 61. Encountered: \>

Parser can’t understand last closing “\>” or something before it in forward declaration in line

```auto

template <typename charT, typename Alloc = Allocator<charT> >

```

What I’m doing wrong? Or this is a bug?

---

<div class="post-metadata">

**Author:** ![Rain](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/rain/32/2309_2.png) [@Rain](https://forums.visual-paradigm.com/u/Rain)\
**Post date:** [March 5, 2013, 5:47pm UTC](https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343/2 "2013-03-05T17:47:56Z")

</div>

Hello progmachine,

I’ve passed the issue to our engineers to follow-up. Will keep you post.

Best regards,  
Rain Wong

---

<div class="post-metadata">

**Author:** ![progmachine](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/progmachine/32/438_2.png) [@progmachine](https://forums.visual-paradigm.com/u/progmachine)\
**Post date:** [March 8, 2013, 9:32am UTC](https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343/3 "2013-03-08T09:32:50Z")

</div>

Another question: will support C++11? And if so, when? For now I have to create a predefined macro “noexcept”, but other things probably can not be corrected with macros.

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [June 18, 2013, 6:16pm UTC](https://forums.visual-paradigm.com/t/c-round-trip-reverse-code-encountered-parse-error/12343/4 "2013-06-18T18:16:10Z")

</div>

Hi progmachine,

I would like to inform you that the reverse engineering issue has been fixed. You can update to the latest patch build to obtain the fix. For details, please read:

> **[Update Visual Paradigm to Latest Patch - Visual Paradigm Know-how](https://knowhow.visual-paradigm.com/technical-support/update-to-patch/)**
>
> Upon receiving a problem report or request of enhancement, we do our best to make the necessary changes. You will then be suggested to update your Visual Paradigm installation to the patch release, in which the fix or enhancement has been made. In...

Best regards,  
Jick Yeung
