summaryrefslogtreecommitdiffstats
path: root/src/2geom/concepts.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-05-22 08:23:27 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-05-22 08:23:27 +0000
commit25fa09178b7d0d0befa708e93ea5316ef381caa0 (patch)
tree550b4d0d66d0d234b3f49e868cb747987dcc6bf8 /src/2geom/concepts.h
parentMerge from trunk (diff)
downloadinkscape-25fa09178b7d0d0befa708e93ea5316ef381caa0.tar.gz
inkscape-25fa09178b7d0d0befa708e93ea5316ef381caa0.zip
Update to 2Geom revision 2396
(bzr r14059.2.16)
Diffstat (limited to 'src/2geom/concepts.h')
-rw-r--r--src/2geom/concepts.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/2geom/concepts.h b/src/2geom/concepts.h
index f571ddc60..7bc1bc0fd 100644
--- a/src/2geom/concepts.h
+++ b/src/2geom/concepts.h
@@ -131,6 +131,16 @@ template <typename T>
inline T portion(const T& t, const Interval& i) { return portion(t, i.min(), i.max()); }
template <typename T>
+struct EqualityComparableConcept {
+ T a, b;
+ bool bool_;
+ void constaints() {
+ bool_ = (a == b);
+ bool_ = (a != b);
+ }
+};
+
+template <typename T>
struct NearConcept {
T a, b;
double tol;