Re: waves branch and wave copy constructor
Felix Salfelder <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <[email protected]> |
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