On Wed, Jul 11, 2012 at 10:48 PM, Tim E. Real wrote:
> On July 8, 2012 4:29:20 PM Tim E. Real wrote:
>> On July 8, 2012 9:05:15 PM Robert Jonsson wrote:
>> > Hi,
>> >
>> > Some bugs in 2.0
>> >
>> > Making some recordings here, found a pecular bug. Moving an effect in
>> > the plugin rack causes parameter editing to go haywire. Most seem to
>> > be reset to 0 and many are not possible to change after that even
>> > though the track has automation OFF.
>>
>> Sounds like my department. Some changes there recently. Will check.
>> Tim.
>
> Crud. I broke it. As usual.
>
> I wanted to override class CtrlList's insert, erase, clear, operator=  etc.
>  so that I could absolutely catch all operations requiring gui updates,
>  so that I wouldn't have to hunt down every last piece of code using them
>  and manually add a gui update command.
>
> It worked sort of:
>
> My override of map::operator= is not working. None of the members are
>  being transferred.
>
> Declaration:
> ===================
> class CtrlList : public std::map<int, CtrlVal, std::less<int> > {
> ...
>       CtrlList& operator=(const CtrlList&);
> ...
> }
>
> Definition:
> ====================
> CtrlList& CtrlList::operator=(const CtrlList& cl)
> {
>         //
>         // THIS CALL IS NOT WORKING. HELP - HOW TO DO IT?
>         //
>   std::map<int, CtrlVal, std::less<int> >::operator=(cl);
>
> ...
> }
>
> How can I call the base (std::map) class's operator= ?
>

2 suggestions: It may be a compiler issue. Did you try another
compiler, e.g. clang?
Also I would try typedef'ing the parent class. For some reason I keep
having problems for deriving from template classes too, and typedefs
help for some reason.

Cheers,
Orcan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to