From 16035f7dc6284b7fedb33d6e2f82ea6fbfb2f6bc Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 24 Mar 2008 15:43:17 +0000 Subject: [PATCH] Remove the silly "Cannot add virtual methods if subclassing support was not enabled for this class" restriction. --- pybindgen/cppclass.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index c305180..c6440b3 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -944,9 +944,6 @@ public: self.nonpublic_methods.append(method) if method.is_virtual: self._have_pure_virtual_methods = None - if not self.allow_subclassing: - raise ValueError("Cannot add virtual methods if subclassing " - "support was not enabled for this class") helper_class = self.get_helper_class() if helper_class is not None: if not method.is_pure_virtual: