Malcolm Nealon wrote:
> Hi all,
>
> i have managed to make a simple change to enable a beginning compilation 
> of wxArt2d with the Borland Cpp Builder 6 Personal edition.
>
> The file a2dlist.h lines 218 226 234 needed  typename replaced by 
> template<class T>
>
> I (as previously mentioned) know little to nothing about stl so this 
> might not be a sensible change. In any case it manages to get past that 
> particular error.
>
> Now I come to the file comevt.h
>
> BCB bottles out here in a grand way. Many errors of the form
>
> Error E2316 C:\wxArt2D-head_borland\modules\general/include/comevt.h 
> 1884: 'argValue' is not a member of 'a2dCommand_SetVariable::Args' in 
> function a2dCommand_SetVariable::a2dCommand_SetVariable(const 
> a2dCommand_SetVariable::Args &)
>
> These go away when I comment out the A2D_ARGUMENT_SETTER macro uses. 
> This seems the case wherever this macro is used. It seems that this 
> macro is getting incorrectly expanded under BCB. Any ideas?
>
>   
And what is you write out:

#define A2D_ARGUMENT_SETTER( TYPE, ARGUMENT_NAME ) \
Args & \
ARGUMENT_NAME( const TYPE& arg) { \
    this->argValue.ARGUMENT_NAME = arg; \
    this->argSet.ARGUMENT_NAME = true; \
    return *this; \
}

A2D_ARGUMENT_SETTER( wxString, varname ) becomes:

Args& varname(const wxString arg )
    this->argValue.varname = arg;
    this->argSet.varname = true;
    return *this;
}




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to