Re: More parse errors
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Niall Douglas wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> template<typename T> inline T *malloc(size_t size, FXMemoryPool
> *heap=0) throw() FXMALLOCATTR;
>
> where #define FXMALLOCATTR __attribute__ ((malloc))
I can't confirm this, i.e. it parses fine for me. How did you compile
the C++ parser ? What platform are you on ? Are you using gcc/g++ ?
The '__attribute__' stuff is enabled right now only when the Parser
is itself compiled with gcc, i.e. right now there is no 'cross-compilation'
possible. It shouldn't be hard to enable it, though.
>
> Also:
>
> namespace Generic { typedef int BoundFunctorV; }
> template<class type> class FXAutoPtr;
> typedef int HandledCode;
> const int HandledAsync=0;
>
> class FXIPCChannel
> {
> template<typename objtype, typename fntype, typename msgtype> void
> int_handlerIndirect(fntype, FXAutoPtr<msgtype>,
> Generic::BoundFunctorV *);
> template<typename fntype, typename msgtype> HandledCode
> invokeMsgHandler(fntype fnptr, msgtype *msg)
> {
> typedef int objType;
> void (FXIPCChannel::*mythunk)(fntype, FXAutoPtr<msgtype>,
> Generic::BoundFunctorV *)=&FXIPCChannel::int_handlerIndirect<objType,
> fntype, msgtype>;
> return HandledAsync;
> }
> };
>
> Odd one this last one. Seems to dislike taking the address of a
> templated function.
I'll look into it.
Thanks for the report,
Stefan