[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ question
From: |
David Kastrup |
Subject: |
Re: C++ question |
Date: |
Wed, 27 Jun 2012 21:53:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
"address@hidden" <address@hidden> writes:
> Hey all,
>
> If I have a header file with stuff like:
>
> class MyClass {
> typedef int (*happy)(int a, int b, int c);
>
> happy foo
> happy bar;
> happy baz;
> }
>
> Is there a way to define foo, bar, and baz with the same typedef in
> the c++ file
No. The parameter names are not part of the type signature. You could
use a macro, but I'd advise against it.
--
David Kastrup