SWIG -- How can I ignore a templated C++ function?
<p>I have a C++ class that resembles this:</p>

<pre><code>namespace ns {
    template&lt;class T&gt;
    class Wrapper {
    public:
        bool operator==(const Wrapper&lt;T&gt;&amp; rhs) const;  
        // Other methods
    private:
        T mData;
    };
}
</code></pre>

<p>I want to wrap this in SWIG/Python, but I don't want to include the equality operator. I have tried various things:</p>

<pre><code>%ignore ns::Wrapper::operator==;
%ignore ns::Wrapper::operator==(const ns::Wrapper&amp;) const;
</code></pre>

<p>And I've also gone through with class that T  might represent (let's say it's class Data for now):</p>

<pre><code>%ignore ns::Wrapper&lt;Data&gt;::operator(const ns::Wrapper&lt;Data&gt;&amp;) const;
%template(WrappedData) ns::Wrapper&lt;Data&gt;;
%ignore WrappedData::operator==(const WrappedData&amp;) const;
</code></pre>