lmi
[Top][All Lists]
Advanced

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

Re: [lmi] sequence input editor -- how to get accepted keywords


From: Vaclav Slavik
Subject: Re: [lmi] sequence input editor -- how to get accepted keywords
Date: Sun, 27 Jun 2010 15:11:30 +0200

On Sun, 2010-06-27 at 11:35 +0000, Greg Chicares wrote:
> I was going to ask why 'input.hpp' has a separate reconstitutor
> for class datum_sequence:
>   template<> struct reconstitutor<datum_base, Input>     // old
>   template<> struct reconstitutor<datum_sequence, Input> //
> new--needed?
> but now I guess there was no subtle and profound reason: that's
> all I need to know. First we get it correct, then we refactor
> into simplest form. 

This one really is needed. Without it, this part of
InputSequenceEntry::UponOpenEditor() doesn't work:

    std::string const name(GetName().c_str());
    const datum_sequence* ds = 
member_cast<datum_sequence>(input->operator[](name));
    LMI_ASSERT(ds);

Clicking on "..." fails the assertion without the reconstitutor<>:

    Cannot cast from 'payment_sequence Input::*' to 'datum_sequence'.

Regards,
Vaclav




reply via email to

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