From 367819b5cce5861a53d11ba7b5ea120cd0257ee9 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 28 Feb 2015 22:56:09 +0000 Subject: [PATCH] oops --- TODO | 14 +++++++++++++- cplusplus/include/vips/VImage8.h | 6 ------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index dbab1cf4..ee95fb94 100644 --- a/TODO +++ b/TODO @@ -5,7 +5,19 @@ - need to add [] overload to Ruby bindings -- overload (x, y) to be getpoint()? +- add + + VImage &operator[]( int index ) + throw( VError ) + { + VImage result = this->extract_band( index ); + + return( result ); + } + + to cpp bindings + +- overload (x, y) to be getpoint()? c++/py/rb diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index 323062cf..7489d232 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -1263,12 +1263,6 @@ public: return( a * -1 ); } - friend VImage operator[]( VImage a, int index ) - throw( VError ) - { - return( a.extract_band( index ) ); - } - }; VIPS_NAMESPACE_END