Commits

Georg Brandl  committed aa7797c

Fix #677: allow multiple signatures in C++ domain directives.

  • Participants
  • Parent commits 200b53f

Comments (0)

Files changed (3)

 Release 1.0.8 (in development)
 ==============================
 
+* #677: Fix parsing of multiple signatures in C++ domain.
+
 * #637: Ignore Emacs lock files when looking for source files.
 
 * #544: Allow .pyw extension for importable modules in autodoc.

File sphinx/domains/cpp.py

             return False
         try:
             for key, value in self.__dict__.iteritems():
-                if value != getattr(other, value):
+                if value != getattr(other, key):
                     return False
         except AttributeError:
             return False

File tests/root/objects.txt

 .. cpp:class:: n::Array<T,d>
 
    .. cpp:function:: T& operator[]( unsigned j )
-
-   .. cpp:function:: const T& operator[]( unsigned j ) const
-
+                     const T& operator[]( unsigned j ) const