On Wed, 5 May 2004, Vladimir Prus wrote:
> I'm having trouble referring to overloaded functions with the <functionname>
> element. For example, if I have
>
>     namespace boost {
>           void foo(int);
>
>           void foo(double);
>       }

If you write this as:

<overloaded-function name="foo">
  <signature>
    <type>void</type>
    <parameter name="double"><paramtype>int</paramtype</parameter>
  </signature>
  <signature>
    <type>void>
    <parameter name="double"><paramtype>double</paramtype</parameter>
  </signature>

  <!-- documentation here -->
</overloaded-function>

it will work. If you absolutely have to have the functions as separate
"function" entities, then we'll need to figure something out :).

> in some header, and
>
>     <functionname alt='boost::foo'>foo</functionname>
>
> in XML file, then I get:
>
> Reference to function 'boost::foo' is ambiguous. Found:
>           Match in namespace ::
>           Match in namespace ::
>
> and no link is generated.
>
> It would be nice to generate a link to the first function from the overload
> set (and make sure all functions are listed in one place).

Hmmm, I think this is possible, but it's not easy in XSLT. Perhaps
allowing an id on the <function> tag and a refid on the <functionname>
tag is the right plan.

        Doug


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Boost-docs mailing list
[EMAIL PROTECTED]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to