This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Prototypes of C++ methods
- To: docbook at lists dot oasis-open dot org
- Subject: DOCBOOK: Prototypes of C++ methods
- From: Jan Ekholm <chakie at infa dot abo dot fi>
- Date: Tue, 21 Mar 2000 09:29:11 +0200 (EET)
- Reply-To: docbook at lists dot oasis-open dot org
Hi,
For my Master's Thesis I need to have a few prototypes for some C++
methods. I can do most of them using the normal tags. I use it like this:
<funcsynopsis>
<funcsynopsisinfo>#include <ZombieClient.h></funcsynopsisinfo>
<funcdef>Packet * <function>receive</function></funcdef>
<paramdef>
const bool <parameter>Block = false</parameter>
</paramdef>
</funcsynopsis>
This corresponds to a method definition of:
Packet * receive (const bool Block = false);
But how do I get an extra 'const' in there? Like this?
Packet * receive (const bool Block = false) const;
I haven't found any way of doing it. Can it be done, or have I just
misunderstood something? I hope this kind of question is relevant for this
list, otherwise I apologize.
Regards, Jan Ekholm
---------------------+------------------------------------------------------
Jan 'Chakie' Ekholm | CS at Åbo Akademi University, Turku, Finland
Linux Inside | I'm the blue screen of death, no-one hears you scream