Revert "Merge pull request #853 from ivannp/underscores"
This reverts commita964098754, reversing changes made tobda3a11f9e. SWIG should only provide default operator names that provide special standard or conventional meaning in the target language.
This commit is contained in:
parent
3dfb2298a8
commit
f9158e525f
4 changed files with 38 additions and 68 deletions
|
|
@ -20,12 +20,8 @@ private:
|
|||
double radius;
|
||||
public:
|
||||
Circle(double r) : radius(r) { }
|
||||
Circle(double xx, double yy, double rr);
|
||||
virtual double area();
|
||||
virtual double perimeter();
|
||||
|
||||
bool operator==(const Circle & other);
|
||||
bool operator!=(const Circle & other);
|
||||
};
|
||||
|
||||
class Square : public Shape {
|
||||
|
|
@ -35,7 +31,4 @@ public:
|
|||
Square(double w) : width(w) { }
|
||||
virtual double area();
|
||||
virtual double perimeter();
|
||||
|
||||
bool operator==(const Square & other);
|
||||
bool operator!=(const Square & other);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue