summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-09-04 23:54:10 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-09-04 23:54:10 +0200
commitaac30a27e70054799beb0c137e28c9dc9656efec (patch)
tree64c11dfd4dfe2fa9a5b8b7499f6263d9d6f8e0a8 /src/buffer.hh
parent63f467081a34be7d031ee07649b27eded62787ec (diff)
use more constexpr
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 7f3f95ac..9a5aea1f 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -19,11 +19,11 @@ class Window;
struct BufferCoord : LineAndColumn<BufferCoord>
{
- BufferCoord(LineCount line = 0, CharCount column = 0)
+ constexpr BufferCoord(LineCount line = 0, CharCount column = 0)
: LineAndColumn(line, column) {}
template<typename T>
- explicit BufferCoord(const LineAndColumn<T>& other)
+ explicit constexpr BufferCoord(const LineAndColumn<T>& other)
: LineAndColumn(other.line, other.column) {}
};