-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 08.08.2010 21:57, schrieb Jack:
> I'm using Sphinx v1.0.1 and there does not appear to be a sane way to
> handle C++ const member functions. For example:
> 
> .. cpp:class:: butterflyfio::Array<T,d>
> 
>    A simple template class for arrays of datatype ``T`` of length
> ``d``.
> 
>    .. cpp:function:: T& operator[]( unsigned j )
> 
>       Returns a modifiable reference to the ``j`` th index in the
> array.
> 
>    .. cpp:function:: const T& operator[]( unsigned j ) const
> 
>       Returns an immutable reference to the ``j`` th index in the
> array. This
>       is used when working with constant arrays.
> 
> This incorrectly renders the last function with arguments "( unsigned
> j const )" rather than "( unsigned j ) const". If I remove the const
> at the end of "const T& operator[]( unsigned j ) const", then Sphinx
> crashes with the following output:

Hi,

both forms, with and without trailing const, should now work.  The former
already works in 1.0.6, while I just fixed the bug that caused the traceback
with the latter.

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAk0lp7oACgkQN9GcIYhpnLAoIQCgqEc+YrrDL9FPkPITj6XjwHo4
5ZMAn1IWlBdTB0dkN/jCB+KRDTvpKm+m
=dN7o
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to