Ted: Ted Felix wrote: > I'll just pontificate on copy ctors for a bit. Ignore if you've heard > it all before....
I haven't and I very much appreciate the feedback. > The first alternative that I usually try for is to remove the need > for a copy ctor altogether. I will try to do this. The implicit copy ctor wasn't up to the task, so simply dropping in an explicit one seemed the path of least resistance. However, since both Buss class and Instrument class inherit from PluginContainer class, any mistakes there could generate all sorts of nasty side effects. I will see if I can find some other way around the problem. > Also, make sure you declare an operator=(). You can make it private to > prevent anyone from using it. You can also leave it undefined so you'll > get a linker error in case the class itself uses it. For what it's worth, I did declare a private, undefined operator=(), and the program compiled without a hitch. Clearly the patch I submitted should not be used as is. I look forward to getting this thing resolved, so I can get back to actually writing some music. Tim Munro ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
