From a419c4f4e65ef0e3878e806e2b1d041480efac95 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Wed, 26 Dec 2012 15:07:15 +0000 Subject: [PATCH] Mark Vector::operator< as deprecated in the Python bindings --- library/bindings/Vector.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/bindings/Vector.i b/library/bindings/Vector.i index 555b7d15..37d0b3ab 100644 --- a/library/bindings/Vector.i +++ b/library/bindings/Vector.i @@ -34,6 +34,13 @@ PROPERTY(PolyVox::Vector, z, getZ, setZ) STR() }; +%feature("pythonprepend") PolyVox::Vector::operator< %{ + import warnings + warnings.warn("deprecated", DeprecationWarning) +%} + +//%csattributes PolyVox::Vector::operator< "[System.Obsolete(\"deprecated\")]" + %define VECTOR3(StorageType,OperationType,ReducedStorageType) %ignore PolyVox::Vector<3,StorageType,OperationType>::Vector(ReducedStorageType,ReducedStorageType,ReducedStorageType,ReducedStorageType); %ignore PolyVox::Vector<3,StorageType,OperationType>::Vector(ReducedStorageType,ReducedStorageType);