gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] waves branch and wave copy constructor


From: Felix Salfelder
Subject: Re: [Gnucap-devel] waves branch and wave copy constructor
Date: Sat, 7 Mar 2015 15:34:57 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Mar 07, 2015 at 08:37:08AM -0500, al davis wrote:
> using clone now .. still a problem, but I think this one should 
> be easy to fix.

in case this is about DISPATCHER()...

i did notice that there's someting wrong in case a DISPATCHER is created
dynamically. _map lacks initialization. just initializing it (to NULL) breaks
some magic that i do not understand.

i have a workaround i use in output-WIP. basically it is just

+enum CC_DYNAMIC_t {CC_DYNAMIC};

and

+  DISPATCHER(CC_DYNAMIC_t) { untested();
+    incomplete(); // missing destructor
+    _map = new std::map<std::string, T*>;
+  }

in l_dispatch.h.

if this looks easy to you, please fix it properly :D

thanks
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]