Click here to Skip to main content
14,329,915 members

C / C++ / MFC

 
GeneralRe: Initialisation of a Structure, Can anyone see the Obvious? Pin
Bram van Kampen26-Apr-15 14:39
memberBram van Kampen26-Apr-15 14:39 
AnswerRe: Initialisation of a Structure, Can anyone see the Obvious? Pin
bling17-Apr-15 9:49
memberbling17-Apr-15 9:49 
GeneralRe: Initialisation of a Structure, Can anyone see the Obvious? Pin
Bram van Kampen26-Apr-15 14:31
memberBram van Kampen26-Apr-15 14:31 
QuestionBuild errors ! Pin
Member 935023715-Apr-15 3:01
memberMember 935023715-Apr-15 3:01 
SuggestionRe: Build errors ! Pin
David Crow15-Apr-15 3:06
memberDavid Crow15-Apr-15 3:06 
GeneralRe: Build errors ! Pin
Member 935023715-Apr-15 3:16
memberMember 935023715-Apr-15 3:16 
GeneralRe: Build errors ! Pin
Richard Andrew x6415-Apr-15 5:48
professionalRichard Andrew x6415-Apr-15 5:48 
GeneralRe: Build errors ! Pin
Member 935023715-Apr-15 6:04
memberMember 935023715-Apr-15 6:04 
Sorry I think the format got changed.

Basically compiler pointing at forth line from last

end of this structure
struct StateHandler<static_cast<States>(0), DummyExplicitSpecialization>
        : StateHandlerBase 
struct StateHandlerBase
    {
        SharedData data;
        States state;
        Transitions *m_interfaces[static_cast<size_t>(Size)];
        StateHandlerBase()
            : data(SharedData()),
            state(static_cast<States>(InitState))/*, m_interfaces({0})*/
        {
        }

    };

    typedef int DummyExplicitSpecialization;
    template <States stateParam, class Dummy=DummyExplicitSpecialization>
    struct StateHandler
        : StateHandler<static_cast<States>(static_cast<size_t>(stateParam)-1)>
    {
        TransitionImplement<StateMachineComponents, static_cast<States>(stateParam)> m_interface;
        StateHandler() : m_interface(StateHandlerBase::state, StateHandlerBase::data)
        {
            StateHandlerBase::m_interfaces[static_cast<size_t>(stateParam)] = &m_interface;
        }
    };

    template <class DummyExplicitSpecialization>
    struct StateHandler<static_cast<States>(0), DummyExplicitSpecialization>
        : StateHandlerBase
    {
        TransitionImplement<StateMachineComponents, static_cast<States>(0)> m_interface;
        StateHandler() : m_interface(StateHandlerBase::state, StateHandlerBase::data)
        {
            StateHandlerBase::m_interfaces[0] = &m_interface;
        }
    };

    typedef StateHandler<static_cast<States>(TerminateState), DummyExplicitSpecialization> StateHanlderType;
 StateHanlderType StateHanlderInstance;

QuestionRe: Build errors ! Pin
David Crow15-Apr-15 6:54
memberDavid Crow15-Apr-15 6:54 
GeneralRe: Build errors ! Pin
David Crow15-Apr-15 6:51
memberDavid Crow15-Apr-15 6:51 
GeneralRe: Build errors ! Pin
Brisingr Aerowing15-Apr-15 11:22
professionalBrisingr Aerowing15-Apr-15 11:22 
SuggestionRe: Build errors ! Pin
Richard MacCutchan15-Apr-15 7:19
protectorRichard MacCutchan15-Apr-15 7:19 
QuestionMFC: flickering issue with GDI+ Pin
Member 1128851411-Apr-15 20:27
memberMember 1128851411-Apr-15 20:27 
GeneralRe: MFC: flickering issue with GDI+ Pin
David Crow12-Apr-15 16:55
memberDavid Crow12-Apr-15 16:55 
GeneralRe: MFC: flickering issue with GDI+ Pin
Stephen Hewitt15-Apr-15 10:41
memberStephen Hewitt15-Apr-15 10:41 
QuestionDrawing border to dialog using GDI+ Pin
Member 1128851411-Apr-15 19:30
memberMember 1128851411-Apr-15 19:30 
AnswerRe: Drawing border to dialog using GDI+ Pin
Richard MacCutchan11-Apr-15 21:24
protectorRichard MacCutchan11-Apr-15 21:24 
GeneralRe: Drawing border to dialog using GDI+ Pin
Member 1128851412-Apr-15 9:19
memberMember 1128851412-Apr-15 9:19 
GeneralRe: Drawing border to dialog using GDI+ Pin
Richard MacCutchan12-Apr-15 21:35
protectorRichard MacCutchan12-Apr-15 21:35 
QuestionEdit control: number validation Pin
lor7510-Apr-15 7:58
memberlor7510-Apr-15 7:58 
AnswerRe: Edit control: number validation Pin
jeron110-Apr-15 8:18
memberjeron110-Apr-15 8:18 
QuestionRe: Edit control: number validation Pin
David Crow10-Apr-15 10:58
memberDavid Crow10-Apr-15 10:58 
AnswerRe: Edit control: number validation Pin
lor7511-Apr-15 5:21
memberlor7511-Apr-15 5:21 
AnswerRe: Edit control: number validation Pin
Bram van Kampen15-Apr-15 15:53
memberBram van Kampen15-Apr-15 15:53 
QuestionRemote PC MySql Connect to My PC Pin
D.Manivelan10-Apr-15 1:56
memberD.Manivelan10-Apr-15 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.