title: Pure virtual function call
body: <p>I'm using boost.python to make python-modules written in c++. I have some base class with pure virtual functions which I have exported like this:</p>
  
  <pre><code>class Base
  {
      virtual int getPosition() = 0;
  };
  
  boost::python::class_&lt;Base&gt;("Base")
     .def("GetPosition", boost::python::pure_virtual(&amp;Base::getPosition));
  </code></pre>
  
  <p>in Python I have code:</p>
  
  <pre><code>class Test(Base):
     def GetPosition(self):
        return 404
  
  Test obj
  obj.GetPosition()
  </code></pre>
  
  <blockquote>
    <p>RuntimeError: Pure virtual function called</p>
  </blockquote>
  
  <p>What's wrong?</p>