projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c77eeb
)
Added a C++11 specific fix.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 30 Jun 2017 08:08:51 +0000
(10:08 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 30 Jun 2017 08:08:51 +0000
(10:08 +0200)
shape.h
patch
|
blob
|
history
diff --git
a/shape.h
b/shape.h
index
8986638
..
671d93c
100644
(file)
--- a/
shape.h
+++ b/
shape.h
@@
-32,7
+32,13
@@
class Shape {
static const int margin = 1;
static const int nb_max_pixels = Vignette::width * Vignette::height;
+
+#if __cplusplus >= 201103L
+ static constexpr scalar_t gap_max = 0.25;
+#else
static const scalar_t gap_max = 0.25;
+#endif
+
int n_pixels1, n_pixels2, n_pixels3, n_pixels4;
int nb_pixels;
scalar_t xc, yc;